org.terracotta.statistics.extended
Class ExpiringSampledStatistic<T extends Number>
java.lang.Object
org.terracotta.statistics.extended.SemiExpiringSampledStatistic<T>
org.terracotta.statistics.extended.ExpiringSampledStatistic<T>
- Type Parameters:
T - statistic type
- All Implemented Interfaces:
- SampledStatistic<T>, SamplingSupport
public class ExpiringSampledStatistic<T extends Number>
- extends SemiExpiringSampledStatistic<T>
Statistic that stops sampling history when the last access is after a user supplied timestamp.
- Author:
- Chris Dennis
|
Method Summary |
T |
value()
Value. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExpiringSampledStatistic
public ExpiringSampledStatistic(ValueStatistic<T> source,
ScheduledExecutorService executor,
int historySize,
long historyPeriod,
TimeUnit historyTimeUnit)
- Creates an expiring statistic.
- Parameters:
source - statistic sourceexecutor - executor to use for samplinghistorySize - size of sample historyhistoryPeriod - period between samples
value
public T value()
- Value.
- Specified by:
value in interface SampledStatistic<T extends Number>
- Returns:
- the t
Copyright © 2016. All Rights Reserved.