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

pack-priv Class OperationImpl<T extends java.lang.Enum<T>>

extends Object
implements Result
Class Inheritance
All Implemented Interfaces
net.sf.ehcache.statistics.extended.ExtendedStatistics.Result
Type Parameters
<T>
the generic type
Imports
java.util.Set, java.util.concurrent.ScheduledExecutorService, net.sf.ehcache.statistics.extended.ExtendedStatistics.Latency, .ExtendedStatistics.Result, .ExtendedStatistics.Statistic, org.terracotta.statistics.OperationStatistic

The Class OperationImpl.
Author
cdennis

Field Summary

Modifier and TypeField and Description
private final SemiExpiringStatistic<Long>
count

The count.

private final LatencyImpl<T extends Enum<T>>
latency

The latency.

private final RateImpl<T extends Enum<T>>
rate

The rate.

private final OperationStatistic<T>
source

The source.

Constructor Summary

AccessConstructor and Description
public
OperationImpl(OperationStatistic<T>
the source
source
,
Set<T>
the targets
targets
,
long
the average nanos
averageNanos
,
ScheduledExecutorService
the executor
executor
,
int
the history size
historySize
,
long
the history nanos
historyNanos
)

Instantiates a new operation impl.

Method Summary

Modifier and TypeMethod and Description
public ExtendedStatistics.Statistic<Long>
pack-priv boolean

Returns:

true, if successful
expire
(long
the expiry time
expiryTime
)

Expire.

public ExtendedStatistics.Latency
public ExtendedStatistics.Statistic<Double>
pack-priv void
setHistory(int
the history size
historySize
,
long
the history nanos
historyNanos
)

Sets the history.

pack-priv void
setWindow(long
the new window
averageNanos
)

Sets the window.

pack-priv void
start()

Start.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

countback to summary
private final SemiExpiringStatistic<Long> count

The count.

latencyback to summary
private final LatencyImpl<T extends Enum<T>> latency

The latency.

rateback to summary
private final RateImpl<T extends Enum<T>> rate

The rate.

sourceback to summary
private final OperationStatistic<T> source

The source.

Constructor Detail

OperationImplback to summary
public OperationImpl(OperationStatistic<T> source, Set<T> targets, long averageNanos, ScheduledExecutorService executor, int historySize, long historyNanos)

Instantiates a new operation impl.

Parameters
source:OperationStatistic<T>

the source

targets:Set<T>

the targets

averageNanos:long

the average nanos

executor:ScheduledExecutorService

the executor

historySize:int

the history size

historyNanos:long

the history nanos

Method Detail

countback to summary
public ExtendedStatistics.Statistic<Long> count()

Implements net.sf.ehcache.statistics.extended.ExtendedStatistics.Result.count.

Doc from net.sf.ehcache.statistics.extended.ExtendedStatistics.Result.count.

Count.

Returns:ExtendedStatistics.Statistic<Long>

the statistic

Annotations
@Override
expireback to summary
pack-priv boolean expire(long expiryTime)

Expire.

Parameters
expiryTime:long

the expiry time

Returns:boolean

true, if successful

latencyback to summary
public ExtendedStatistics.Latency latency() throws UnsupportedOperationException

Implements net.sf.ehcache.statistics.extended.ExtendedStatistics.Result.latency.

Doc from net.sf.ehcache.statistics.extended.ExtendedStatistics.Result.latency.

Latency.

Returns:ExtendedStatistics.Latency

the latency

Annotations
@Override
rateback to summary
public ExtendedStatistics.Statistic<Double> rate()

Implements net.sf.ehcache.statistics.extended.ExtendedStatistics.Result.rate.

Doc from net.sf.ehcache.statistics.extended.ExtendedStatistics.Result.rate.

Rate.

Returns:ExtendedStatistics.Statistic<Double>

the statistic

Annotations
@Override
setHistoryback to summary
pack-priv void setHistory(int historySize, long historyNanos)

Sets the history.

Parameters
historySize:int

the history size

historyNanos:long

the history nanos

setWindowback to summary
pack-priv void setWindow(long averageNanos)

Sets the window.

Parameters
averageNanos:long

the new window

startback to summary
pack-priv void start()

Start.