Class StepDistributionSummary

All Implemented Interfaces:
HistogramSupport, DistributionSummary, Meter

public class StepDistributionSummary extends AbstractDistributionSummary
Step-normalized DistributionSummary.
  • Constructor Details

    • StepDistributionSummary

      public StepDistributionSummary(Meter.Id id, Clock clock, DistributionStatisticConfig distributionStatisticConfig, double scale, long stepMillis, boolean supportsAggregablePercentiles)
      Create a new StepDistributionSummary.
      Parameters:
      id - ID
      clock - clock
      distributionStatisticConfig - distribution statistic configuration
      scale - scale
      stepMillis - step in milliseconds
      supportsAggregablePercentiles - whether it supports aggregable percentiles
    • StepDistributionSummary

      protected StepDistributionSummary(Meter.Id id, Clock clock, DistributionStatisticConfig distributionStatisticConfig, double scale, long stepMillis, Histogram histogram)
      Create a new StepDistributionSummary.
      Parameters:
      id - ID
      clock - clock
      distributionStatisticConfig - distribution static configuration
      scale - scale
      stepMillis - step in milliseconds
      histogram - histogram
      Since:
      1.11.1
  • Method Details

    • recordNonNegative

      protected void recordNonNegative(double amount)
      Specified by:
      recordNonNegative in class AbstractDistributionSummary
    • count

      public long count()
      Specified by:
      count in interface DistributionSummary
      Returns:
      The number of times that record has been called since this timer was created.
    • totalAmount

      public double totalAmount()
      Specified by:
      totalAmount in interface DistributionSummary
      Returns:
      The total amount of all recorded events.
    • max

      public double max()
      Specified by:
      max in interface DistributionSummary
      Returns:
      The maximum time of a single event.
    • measure

      public Iterable<Measurement> measure()
      Description copied from interface: Meter
      Get a set of measurements. Should always return the same number of measurements and in the same order, regardless of the level of activity or the lack thereof.
      Specified by:
      measure in interface DistributionSummary
      Specified by:
      measure in interface Meter
      Returns:
      The set of measurements that represents the instantaneous value of this meter.
    • _closingRollover

      public void _closingRollover()