Package io.airlift.stats
Class DecayCounter
- java.lang.Object
-
- io.airlift.stats.DecayCounter
-
@ThreadSafe public final class DecayCounter extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDecayCounter.DecayCounterSnapshot
-
Constructor Summary
Constructors Constructor Description DecayCounter(double alpha)DecayCounter(double alpha, com.google.common.base.Ticker ticker)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidadd(long value)DecayCounterduplicate()doublegetAlpha()doublegetCount()doublegetRate()voidmerge(DecayCounter decayCounter)voidreset()voidresetTo(DecayCounter counter)Deprecated.DecayCounter.DecayCounterSnapshotsnapshot()StringtoString()
-
-
-
Method Detail
-
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
public DecayCounter.DecayCounterSnapshot snapshot()
-
getAlpha
public double getAlpha()
-
-