public class DecayCounter extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DecayCounter.DecayCounterSnapshot |
| Constructor and Description |
|---|
DecayCounter(double alpha) |
DecayCounter(double alpha,
com.google.common.base.Ticker ticker) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(long value) |
double |
getAlpha() |
double |
getCount() |
double |
getRate() |
void |
merge(DecayCounter decayCounter) |
void |
reset() |
void |
resetTo(DecayCounter counter)
Deprecated.
|
DecayCounter.DecayCounterSnapshot |
snapshot() |
String |
toString() |
public DecayCounter(double alpha)
public DecayCounter(double alpha,
com.google.common.base.Ticker ticker)
public void add(long value)
public void merge(DecayCounter decayCounter)
public void reset()
@Deprecated public void resetTo(DecayCounter counter)
public double getCount()
public double getRate()
public DecayCounter.DecayCounterSnapshot snapshot()
public double getAlpha()
Copyright © 2010-2017 Airlift. All Rights Reserved.