|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.ehcache.statistics.extended.SemiExpiringStatistic<T>
T - statistic typepublic class SemiExpiringStatistic<T extends Number>
Statistic implementation that stops sampling history if the last history access is before a user supplied timestamp.
| Constructor Summary | |
|---|---|
SemiExpiringStatistic(org.terracotta.statistics.ValueStatistic<T> source,
ScheduledExecutorService executor,
int historySize,
long historyNanos)
Creates a new semi-expiring statistic. |
|
| Method Summary | |
|---|---|
boolean |
active()
Active. |
protected boolean |
expire(long expiry)
Expire. |
List<org.terracotta.statistics.archive.Timestamped<T>> |
history()
History. |
protected void |
start()
Start. |
protected void |
startStatistic()
Start statistic. |
protected void |
stopStatistic()
Stop statistic. |
protected void |
touch()
Touch. |
T |
value()
Value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SemiExpiringStatistic(org.terracotta.statistics.ValueStatistic<T> source,
ScheduledExecutorService executor,
int historySize,
long historyNanos)
source - statistic sourceexecutor - executor to use for samplinghistorySize - size of sample historyhistoryNanos - period between samples| Method Detail |
|---|
public List<org.terracotta.statistics.archive.Timestamped<T>> history()
history in interface ExtendedStatistics.Statistic<T extends Number>public final boolean active()
ExtendedStatistics.Statistic
protected final void touch()
protected final void start()
protected final boolean expire(long expiry)
expiry - the expiry
protected void stopStatistic()
protected void startStatistic()
public T value()
value in interface ExtendedStatistics.Statistic<T extends Number>
|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||