Class DecayCounter

java.lang.Object
io.airlift.stats.DecayCounter

@ThreadSafe public final class DecayCounter extends Object
  • Constructor Details

    • DecayCounter

      public DecayCounter(double alpha)
    • DecayCounter

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

    • duplicate

      public DecayCounter duplicate()
    • add

      public void add(long value)
    • merge

      public void merge(DecayCounter decayCounter)
    • 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()
    • snapshot

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getAlpha

      public double getAlpha()