Class MetricsCollector.Histogram
java.lang.Object
com.soklet.MetricsCollector.Histogram
- Enclosing interface:
MetricsCollector
A thread-safe histogram with fixed bucket boundaries.
Negative values are ignored. Buckets use inclusive upper bounds, and snapshots include
an overflow bucket represented by a MetricsCollector.HistogramSnapshot.getBucketBoundary(int) of
Long.MAX_VALUE.
- Author:
- Mark Allen
-
Constructor Details
-
Histogram
-
-
Method Details
-
record
Records a value into the histogram.- Parameters:
value- the value to record
-
snapshot
Captures an immutable snapshot of the histogram.- Returns:
- the histogram snapshot
-
reset
Resets all counts and min/max values.
-