Interface Histogram

All Superinterfaces:
Metric
All Known Implementing Classes:
HistogramImpl

@LimitedPrivate("Coprocesssor") @Evolving public interface Histogram extends Metric
A metric which measures the distribution of values.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Return the total number of values added to the histogram.
    Snapshot the current values in the Histogram
    void
    update(int value)
    Adds a new value to the distribution.
    void
    update(long value)
    Adds a new value to the distribution.
  • Method Details

    • update

      void update(int value)
      Adds a new value to the distribution.
      Parameters:
      value - The value to add
    • update

      void update(long value)
      Adds a new value to the distribution.
      Parameters:
      value - The value to add
    • getCount

      long getCount()
      Return the total number of values added to the histogram.
      Returns:
      the total number of values.
    • snapshot

      @Private Snapshot snapshot()
      Snapshot the current values in the Histogram
      Returns:
      a Snapshot of the distribution.