| Modifier and Type | Field and Description |
|---|---|
| private boolean | active
The active. |
| private long | touchTimestamp
The touch timestamp. |
| Access | Constructor and Description |
|---|---|
| public | SemiExpiringStatistic(ValueStatistic<T>
statistic source source, ScheduledExecutorService executor to use for sampling executor, int size of sample history historySize, long period between samples historyNanos)Creates a new semi-expiring statistic. |
| Modifier and Type | Method and Description |
|---|---|
| public final synchronized boolean | |
| protected final synchronized boolean | |
| public List | history()
Overrides net. Implements net. |
| protected final synchronized void | |
| protected void | |
| protected void | |
| protected final synchronized void |
| active | back to summary |
|---|---|
| private boolean active The active. | |
| touchTimestamp | back to summary |
|---|---|
| private long touchTimestamp The touch timestamp. | |
| SemiExpiringStatistic | back to summary |
|---|---|
| public SemiExpiringStatistic(ValueStatistic<T> source, ScheduledExecutorService executor, int historySize, long historyNanos) Creates a new semi-expiring statistic.
| |
| active | back to summary |
|---|---|
| public final synchronized boolean active() Implements net. Doc from net. Active.
| |
| expire | back to summary |
|---|---|
| protected final synchronized boolean expire(long expiry) Expire.
| |
| history | back to summary |
|---|---|
| public List Overrides net. Implements net. Doc from net. History.
| |
| start | back to summary |
|---|---|
| protected final synchronized void start() Start. | |
| startStatistic | back to summary |
|---|---|
| protected void startStatistic() Start statistic. | |
| stopStatistic | back to summary |
|---|---|
| protected void stopStatistic() Stop statistic. | |
| touch | back to summary |
|---|---|
| protected final synchronized void touch() Touch. | |