Package io.airlift.stats
Class DecayCounter
java.lang.Object
io.airlift.stats.DecayCounter
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionDecayCounter(double alpha) DecayCounter(double alpha, com.google.common.base.Ticker ticker) -
Method Summary
-
Constructor Details
-
DecayCounter
public DecayCounter(double alpha) -
DecayCounter
public DecayCounter(double alpha, com.google.common.base.Ticker ticker)
-
-
Method Details
-
duplicate
-
add
public void add(long value) -
merge
-
reset
public void reset() -
resetTo
Deprecated.This is a hack to work around limitations in Jmxutils. -
getCount
public double getCount() -
getRate
public double getRate() -
snapshot
-
toString
-
getAlpha
public double getAlpha()
-