Class NoopDistributionSummary

All Implemented Interfaces:
HistogramSupport, DistributionSummary, Meter

public class NoopDistributionSummary extends NoopMeter implements DistributionSummary
  • Constructor Details

    • NoopDistributionSummary

      public NoopDistributionSummary(Meter.Id id)
  • Method Details

    • record

      public void record(double amount)
      Description copied from interface: DistributionSummary
      Updates the statistics kept by the summary with the specified amount.
      Specified by:
      record in interface DistributionSummary
      Parameters:
      amount - Amount for an event being measured. For example, if the size in bytes of responses from a server. If the amount is less than 0 the value will be dropped.
    • 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.
    • takeSnapshot

      public HistogramSnapshot takeSnapshot()
      Description copied from interface: HistogramSupport
      Summary statistics should be published off of a single snapshot instance so that, for example, there isn't disagreement between the distribution's bucket counts because more events continue to stream in.
      Specified by:
      takeSnapshot in interface HistogramSupport
      Returns:
      A snapshot of all distribution statistics at a point in time.