Class CumulativeDistributionSummary

All Implemented Interfaces:
HistogramSupport, DistributionSummary, Meter

public class CumulativeDistributionSummary extends AbstractDistributionSummary
Cumulative distribution summary.
  • Constructor Details

    • CumulativeDistributionSummary

      @Deprecated public CumulativeDistributionSummary(Meter.Id id, Clock clock, DistributionStatisticConfig distributionStatisticConfig, double scale)
      Deprecated.
    • CumulativeDistributionSummary

      public CumulativeDistributionSummary(Meter.Id id, Clock clock, DistributionStatisticConfig distributionStatisticConfig, double scale, boolean supportsAggregablePercentiles)
    • CumulativeDistributionSummary

      protected CumulativeDistributionSummary(Meter.Id id, Clock clock, DistributionStatisticConfig distributionStatisticConfig, double scale, Histogram histogram)
      Creates a CumulativeDistributionSummary instance.
      Parameters:
      id - meter ID
      clock - clock
      distributionStatisticConfig - distribution statistic configuration
      scale - scale
      histogram - histogram
      Since:
      1.11.0
  • Method Details

    • recordNonNegative

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

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

      public double totalAmount()
      Returns:
      The total amount of all recorded events.
    • max

      public double max()
      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.
      Returns:
      The set of measurements that represents the instantaneous value of this meter.