Class CountMetricSummary


  • public class CountMetricSummary
    extends Object
    Provides summary data for a set of count values.
    Since:
    0.37
    • Constructor Detail

      • CountMetricSummary

        public CountMetricSummary()
    • Method Detail

      • increment

        public void increment​(long inc,
                              long elapsedTimeMillis)
        Updates collected summary data with given info.
        Parameters:
        inc - contains the last value counted.
        elapsedTimeMillis - specifies the number of milliseconds since the count started.
      • perSecond

        public double perSecond()
        Provides the average count per second for the given metric.
      • total

        public long total()
        Provides the total count (the sum).