public class EventRateSimpleMovingAverage extends Object implements ChainedEventObserver, ValueStatistic<Double>
| Constructor and Description |
|---|
EventRateSimpleMovingAverage(long time,
TimeUnit unit) |
| Modifier and Type | Method and Description |
|---|---|
void |
event(long time,
long... parameters)
Called to indicate an event happened.
|
Double |
rate(TimeUnit base) |
Double |
rateUsingSeconds() |
void |
setWindow(long time,
TimeUnit unit) |
StatisticType |
type() |
Double |
value() |
public EventRateSimpleMovingAverage(long time,
TimeUnit unit)
public void setWindow(long time,
TimeUnit unit)
public Double value()
value in interface ValueStatistic<Double>public StatisticType type()
type in interface ValueStatistic<Double>public Double rateUsingSeconds()
public void event(long time,
long... parameters)
ChainedEventObserverevent in interface ChainedEventObservertime - the time of the eventparameters - the event parametersCopyright © 2018. All rights reserved.