Class DiagnosticQueueMetrics
java.lang.Object
io.higson.runtime.diagnostic.queue.DiagnosticQueueMetrics
Thread-safe counters for monitoring
DiagnosticQueue activity.
All increment operations are non-blocking and use LongAdder internally.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonglonglongprint()Return a human-readable summary of the current counter values.voidvoidvoidrecordFlushed(int count) voidreset()Reset all counters to zero.
-
Constructor Details
-
DiagnosticQueueMetrics
public DiagnosticQueueMetrics()
-
-
Method Details
-
recordEnqueued
public void recordEnqueued() -
recordDropped
public void recordDropped() -
recordFlushed
public void recordFlushed(int count) -
getTotalEnqueued
public long getTotalEnqueued() -
getTotalDropped
public long getTotalDropped() -
getTotalFlushed
public long getTotalFlushed() -
reset
public void reset()Reset all counters to zero. -
print
Return a human-readable summary of the current counter values.
-