public class ExponentiallyWeightedMovingAverage extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
double |
getMovingAverage(TimeUnit rateTimeUnit) |
static ExponentiallyWeightedMovingAverage |
lastFifteenMinutes(long tickInterval,
TimeUnit tickTimeUnit) |
static ExponentiallyWeightedMovingAverage |
lastFiveMinutes(long tickInterval,
TimeUnit tickTimeUnit) |
static ExponentiallyWeightedMovingAverage |
lastOneMinute(long tickInterval,
TimeUnit tickTimeUnit) |
void |
tick() |
void |
update(long n) |
public static ExponentiallyWeightedMovingAverage lastOneMinute(long tickInterval, TimeUnit tickTimeUnit)
public static ExponentiallyWeightedMovingAverage lastFiveMinutes(long tickInterval, TimeUnit tickTimeUnit)
public static ExponentiallyWeightedMovingAverage lastFifteenMinutes(long tickInterval, TimeUnit tickTimeUnit)
public void clear()
public void update(long n)
public void tick()
public double getMovingAverage(TimeUnit rateTimeUnit)
Copyright © 2018. All rights reserved.