Table of Contents

Public classSealed NullMetricsCollector

Namespace
Rowles.LeanLucene.Diagnostics
Assembly
Rowles.LeanLucene.dll

No-op metrics collector — the default when no metrics are configured.

public sealed class NullMetricsCollector : IMetricsCollector
NullMetricsCollector
Implements

Public field Instance

Gets the shared singleton instance of the no-op collector.

Public method GetSnapshot()

Takes a point-in-time snapshot of all metrics.

Public method RecordCacheHit()

Records a query cache hit.

Public method RecordCacheMiss()

Records a query cache miss.

Public method RecordCommit(TimeSpan)

Records a commit event.

Public method RecordFlush(TimeSpan)

Records a segment flush event.

Public method RecordMerge(TimeSpan, int)

Records a segment merge event.

Public method RecordSearchLatency(TimeSpan)

Records a search latency sample.