Class TimeWindowPercentileHistogram

java.lang.Object
io.micrometer.core.instrument.distribution.TimeWindowPercentileHistogram
All Implemented Interfaces:
Histogram, java.lang.AutoCloseable

public class TimeWindowPercentileHistogram
extends java.lang.Object
A histogram implementation that supports the computation of percentiles by Micrometer for publishing to a monitoring system.
  • Constructor Summary

    Constructors
    Constructor Description
    TimeWindowPercentileHistogram​(Clock clock, DistributionStatisticConfig distributionStatisticConfig, boolean supportsAggregablePercentiles)  
  • Method Summary

    Modifier and Type Method Description
    protected org.HdrHistogram.DoubleHistogram accumulatedHistogram()  
    protected org.HdrHistogram.DoubleRecorder currentHistogram()  
    void recordDouble​(double value)  
    void recordLong​(long value)  
    HistogramSnapshot takeSnapshot​(long count, double total, double max)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.micrometer.core.instrument.distribution.Histogram

    close
  • Constructor Details

    • TimeWindowPercentileHistogram

      public TimeWindowPercentileHistogram​(Clock clock, DistributionStatisticConfig distributionStatisticConfig, boolean supportsAggregablePercentiles)
  • Method Details

    • takeSnapshot

      public final HistogramSnapshot takeSnapshot​(long count, double total, double max)
      Specified by:
      takeSnapshot in interface Histogram
    • recordLong

      public void recordLong​(long value)
      Specified by:
      recordLong in interface Histogram
    • recordDouble

      public void recordDouble​(double value)
      Specified by:
      recordDouble in interface Histogram
    • accumulatedHistogram

      protected org.HdrHistogram.DoubleHistogram accumulatedHistogram()
    • currentHistogram

      protected org.HdrHistogram.DoubleRecorder currentHistogram()