Class MultiCountStat<T>


  • public class MultiCountStat<T>
    extends Object
    Acts as a MultiCount Stat, but keeps track of approximate counts for the last 10 mins, 3 hours, 1 day, and all time. for the same keys
    • Constructor Detail

      • MultiCountStat

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

      • incBy

        public void incBy​(T key,
                          long count)
        Increase the count by the given value.
        Parameters:
        count - number to count
      • keyToString

        protected String keyToString​(T key)
      • close

        public void close()