| Modifier and Type | Field and Description |
|---|---|
| private final ExpiringSampledStatistic | |
| private final EventRateSimpleMovingAverage | rate
The rate. |
| Access | Constructor and Description |
|---|---|
| public | RateImpl(final OperationStatistic<T>
the source event to monitor source, final Set<T> the targets targets, long the average period averagePeriod, TimeUnit average period unit averageTimeUnit, ScheduledExecutorService the executor executor, int the history size historySize, long the history period historyPeriod, TimeUnit history period unit historyTimeUnit)Instantiates a new rate statistic. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| protected boolean | |
| public List | |
| public List | history(long
starting point of history in ms since)Implements org. |
| protected void | setHistory(int
history sample size historySize, long history sample period historyPeriod, TimeUnit history time unit historyTimeUnit)Set the sample history parameters. |
| protected void | |
| protected void | |
| public StatisticType | |
| public Double |
| delegate | back to summary |
|---|---|
| private final ExpiringSampledStatistic<Double> delegate | |
| rate | back to summary |
|---|---|
| private final EventRateSimpleMovingAverage rate The rate. | |
| RateImpl | back to summary |
|---|---|
| public RateImpl(final OperationStatistic<T> source, final Set<T> targets, long averagePeriod, TimeUnit averageTimeUnit, ScheduledExecutorService executor, int historySize, long historyPeriod, TimeUnit historyTimeUnit) Instantiates a new rate statistic.
| |
| active | back to summary |
|---|---|
| public boolean active() Implements org. Doc from org. Active.
| |
| expire | back to summary |
|---|---|
| protected boolean expire(long expiry) Check the statistic for expiry.
| |
| history | back to summary |
|---|---|
| public List Implements org. Doc from org. History.
| |
| history | back to summary |
|---|---|
| public List Implements org. Doc from org. History, from a given time in ms
| |
| setHistory | back to summary |
|---|---|
| protected void setHistory(int historySize, long historyPeriod, TimeUnit historyTimeUnit) Set the sample history parameters.
| |
| setWindow | back to summary |
|---|---|
| protected void setWindow(long averagePeriod, TimeUnit averageTimeUnit) Sets the window.
| |
| start | back to summary |
|---|---|
| protected void start() Start sampling. | |
| type | back to summary |
|---|---|
| public StatisticType type() Implements org.
| |
| value | back to summary |
|---|---|
| public Double value() Implements org. Doc from org. Value. | |