Class DecayCounter


  • @ThreadSafe
    public final class DecayCounter
    extends Object
    • Constructor Detail

      • DecayCounter

        public DecayCounter​(double alpha)
      • DecayCounter

        public DecayCounter​(double alpha,
                            com.google.common.base.Ticker ticker)
    • Method Detail

      • add

        public void add​(long value)
      • reset

        public void reset()
      • resetTo

        @Deprecated
        public void resetTo​(DecayCounter counter)
        Deprecated.
        This is a hack to work around limitations in Jmxutils.
      • getCount

        public double getCount()
      • getRate

        public double getRate()
      • getAlpha

        public double getAlpha()