Class TimeWindowFixedBoundaryHistogram
java.lang.Object
io.micrometer.core.instrument.distribution.TimeWindowFixedBoundaryHistogram
- All Implemented Interfaces:
Histogram
,java.lang.AutoCloseable
public class TimeWindowFixedBoundaryHistogram
extends java.lang.Object
A histogram implementation that does not support precomputed percentiles but supports
aggregable percentile histograms and SLA boundaries. There is no need for a high dynamic range
histogram and its more expensive memory footprint if all we are interested in is fixed histogram counts.
- Since:
- 1.0.3
-
Constructor Summary
Constructors Constructor Description TimeWindowFixedBoundaryHistogram(Clock clock, DistributionStatisticConfig config, boolean supportsAggregablePercentiles)
-
Method Summary
Modifier and Type Method Description protected java.lang.Void
accumulatedHistogram()
protected io.micrometer.core.instrument.distribution.TimeWindowFixedBoundaryHistogram.FixedBoundaryHistogram
currentHistogram()
void
recordDouble(double value)
void
recordLong(long value)
HistogramSnapshot
takeSnapshot(long count, double total, double max)
-
Constructor Details
-
TimeWindowFixedBoundaryHistogram
public TimeWindowFixedBoundaryHistogram(Clock clock, DistributionStatisticConfig config, boolean supportsAggregablePercentiles)
-
-
Method Details
-
takeSnapshot
- Specified by:
takeSnapshot
in interfaceHistogram
-
recordLong
public void recordLong(long value)- Specified by:
recordLong
in interfaceHistogram
-
recordDouble
public void recordDouble(double value)- Specified by:
recordDouble
in interfaceHistogram
-
accumulatedHistogram
protected java.lang.Void accumulatedHistogram() -
currentHistogram
protected io.micrometer.core.instrument.distribution.TimeWindowFixedBoundaryHistogram.FixedBoundaryHistogram currentHistogram()
-