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) |
Double |
value() |
public EventRateSimpleMovingAverage(long time,
TimeUnit unit)
public void setWindow(long time,
TimeUnit unit)
public Double value()
value in interface ValueStatistic<Double>public Double rateUsingSeconds()
public void event(long time,
long... parameters)
ChainedEventObserverevent in interface ChainedEventObserverCopyright © 2019. All rights reserved.