| Modifier and Type | Field and Description |
|---|---|
| private boolean | active
The active. |
| private volatile boolean | |
| private long | touchTimestamp
The touch timestamp. |
| Access | Constructor and Description |
|---|---|
| public | SemiExpiringSampledStatistic(ValueStatistic<T>
statistic source source, ScheduledExecutorService executor to use for sampling executor, int size of sample history historySize, long period between samples historyTime, TimeUnit unit of period between samples historyTimeUnit, StatisticType sampling type type)Creates a new semi-expiring statistic. |
| Modifier and Type | Method and Description |
|---|---|
| public final synchronized boolean | |
| public final synchronized boolean | Returns: true, if successfulthe expiry expiry)Implements org. |
| public List | history()
Overrides org. Implements org. |
| public List | history(long
starting point of history in ms since)Overrides org. Implements org. |
| public void | setAlwaysOn(boolean enable)
Implements org. |
| protected final synchronized void | |
| protected void | |
| protected void | |
| protected final synchronized void |
| active | back to summary |
|---|---|
| private boolean active The active. | |
| alwaysOn | back to summary |
|---|---|
| private volatile boolean alwaysOn | |
| touchTimestamp | back to summary |
|---|---|
| private long touchTimestamp The touch timestamp. | |
| SemiExpiringSampledStatistic | back to summary |
|---|---|
| public SemiExpiringSampledStatistic(ValueStatistic<T> source, ScheduledExecutorService executor, int historySize, long historyTime, TimeUnit historyTimeUnit, StatisticType type) Creates a new semi-expiring statistic.
| |
| active | back to summary |
|---|---|
| public final synchronized boolean active() Implements org. Doc from org. Active.
| |
| expire | back to summary |
|---|---|
| public final synchronized boolean expire(long expiry) Implements org. Expire.
| |
| history | back to summary |
|---|---|
| public List Overrides org. Implements org. Doc from org. History.
| |
| history | back to summary |
|---|---|
| public List Overrides org. Implements org. Doc from org. History, from a given time in ms
| |
| setAlwaysOn | back to summary |
|---|---|
| public void setAlwaysOn(boolean enable) Implements org.
| |
| 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. | |