| Modifier and Type | Field and Description |
|---|---|
| private final ExpiringStatistic | |
| private final EventRateSimpleMovingAverage | rate
The rate. |
| Access | Constructor and Description |
|---|---|
| public | RateImpl(final SourceStatistic<ChainedOperationObserver<T>> source, final Set<T>
the targets targets, long the average nanos averageNanos, ScheduledExecutorService the executor executor, int the history size historySize, long the history nanos historyNanos)Instantiates a new rate statistic. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| protected boolean | |
| public List | history()
Implements net. |
| protected void | setHistory(int
history sample size historySize, long history sample period historyNanos)Set the sample history parameters. |
| protected void | |
| protected void | |
| public Double |
| delegate | back to summary |
|---|---|
| private final ExpiringStatistic<Double> delegate | |
| rate | back to summary |
|---|---|
| private final EventRateSimpleMovingAverage rate The rate. | |
| RateImpl | back to summary |
|---|---|
| public RateImpl(final SourceStatistic<ChainedOperationObserver<T>> source, final Set<T> targets, long averageNanos, ScheduledExecutorService executor, int historySize, long historyNanos) Instantiates a new rate statistic.
| |
| active | back to summary |
|---|---|
| public boolean active() Implements net. Doc from net. Active.
| |
| expire | back to summary |
|---|---|
| protected boolean expire(long expiry) Check the statistic for expiry.
| |
| history | back to summary |
|---|---|
| public List Implements net. Doc from net. History.
| |
| setHistory | back to summary |
|---|---|
| protected void setHistory(int historySize, long historyNanos) Set the sample history parameters.
| |
| setWindow | back to summary |
|---|---|
| protected void setWindow(long averageNanos) Sets the window.
| |
| start | back to summary |
|---|---|
| protected void start() Start sampling. | |
| value | back to summary |
|---|---|
| public Double value() Implements net. Doc from net. Value. | |