Top Description Constructors Methods
org.terracotta.statistics.extended

public Class ExpiringSampledStatistic<T extends java.lang.Number>

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

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

Constructor Summary

AccessConstructor and Description
public
ExpiringSampledStatistic(ValueStatistic<T>
statistic source
source
,
ScheduledExecutorService
executor to use for sampling
executor
,
int
size of sample history
historySize
,
long
period between samples
historyPeriod
,
TimeUnit
unit of period between samples
historyTimeUnit
,
StatisticType
sampling type
type
)

Creates an expiring statistic.

Method Summary

Modifier and TypeMethod and Description
public T
Inherited from org.terracotta.statistics.extended.SemiExpiringSampledStatistic:
activeexpirehistoryhistorysetAlwaysOnstartstartStatisticstopStatistictouch

Constructor Detail

ExpiringSampledStatisticback to summary
public ExpiringSampledStatistic(ValueStatistic<T> source, ScheduledExecutorService executor, int historySize, long historyPeriod, TimeUnit historyTimeUnit, StatisticType type)

Creates an expiring statistic.

Parameters
source:ValueStatistic<T>

statistic source

executor:ScheduledExecutorService

executor to use for sampling

historySize:int

size of sample history

historyPeriod:long

period between samples

historyTimeUnit:TimeUnit

unit of period between samples

type:StatisticType

sampling type

Method Detail

valueback to summary
public T value()

Overrides org.terracotta.statistics.extended.AbstractSampledStatistic.value.

Implements org.terracotta.statistics.extended.SampledStatistic.value.

Doc from org.terracotta.statistics.extended.AbstractSampledStatistic.value.

Value.

Returns:T

Doc from org.terracotta.statistics.extended.SampledStatistic.value.

the t

Annotations
@Override