Top Description Constructors Methods
net.sf.ehcache.statistics.extended

pack-priv Class ExpiringStatistic<T extends java.lang.Number>

extends SemiExpiringStatistic<T extends Number>
Class Inheritance
Type Parameters
<T>
statistic type
Imports
java.util.concurrent.ScheduledExecutorService, org.terracotta.statistics.ValueStatistic

Statistic that stops sampling history when the last access is after a user supplied timestamp.
Author
Chris Dennis

Constructor Summary

AccessConstructor and Description
public
ExpiringStatistic(ValueStatistic<T>
statistic source
source
,
ScheduledExecutorService
executor to use for sampling
executor
,
int
size of sample history
historySize
,
long
period between samples
historyNanos
)

Creates an expiring statistic.

Method Summary

Modifier and TypeMethod and Description
public T
Inherited from net.sf.ehcache.statistics.extended.SemiExpiringStatistic:
activeexpirehistorystartstartStatisticstopStatistictouch

Constructor Detail

ExpiringStatisticback to summary
public ExpiringStatistic(ValueStatistic<T> source, ScheduledExecutorService executor, int historySize, long historyNanos)

Creates an expiring statistic.

Parameters
source:ValueStatistic<T>

statistic source

executor:ScheduledExecutorService

executor to use for sampling

historySize:int

size of sample history

historyNanos:long

period between samples

Method Detail

valueback to summary
public T value()

Overrides net.sf.ehcache.statistics.extended.AbstractStatistic.value.

Implements net.sf.ehcache.statistics.extended.ExtendedStatistics.Statistic.value.

Doc from net.sf.ehcache.statistics.extended.AbstractStatistic.value.

Value.

Returns:T

Doc from net.sf.ehcache.statistics.extended.ExtendedStatistics.Statistic.value.

the t

Annotations
@Override