Class MultiLatencyStat<T>


  • public class MultiLatencyStat<T>
    extends Object
    Keeps track of approximate latency for the last 10 mins, 3 hours, 1 day, and all time. for the same keys
    • Constructor Detail

      • MultiLatencyStat

        public MultiLatencyStat​(int numBuckets)
        Constructor.
        Parameters:
        numBuckets - the number of buckets to divide the time periods into.
    • Method Detail

      • record

        public void record​(T key,
                           long latency)
        Record a latency value.
        Parameters:
        latency - the measurement to record
      • close

        public void close()