ehcache

net.sf.ehcache.statistics.extended
Class RateStatistic<T extends Enum<T>>

java.lang.Object
  extended by net.sf.ehcache.statistics.extended.RateStatistic<T>
Type Parameters:
T - the generic type
All Implemented Interfaces:
ExtendedStatistics.Statistic<Double>

public class RateStatistic<T extends Enum<T>>
extends Object

The Class RateStatistic.

Author:
cdennis

Constructor Summary
RateStatistic(org.terracotta.statistics.SourceStatistic<org.terracotta.statistics.observer.OperationObserver<T>> statistic, Set<T> targets, long averageNanos, ScheduledExecutorService executor, int historySize, long historyNanos)
          Instantiates a new rate statistic.
 
Method Summary
 boolean active()
          Active.
 List<org.terracotta.statistics.archive.Timestamped<T>> history()
          History.
 T value()
          Value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RateStatistic

public RateStatistic(org.terracotta.statistics.SourceStatistic<org.terracotta.statistics.observer.OperationObserver<T>> statistic,
                     Set<T> targets,
                     long averageNanos,
                     ScheduledExecutorService executor,
                     int historySize,
                     long historyNanos)
Instantiates a new rate statistic.

Parameters:
statistic - the statistic
targets - the targets
averageNanos - the average nanos
executor - the executor
historySize - the history size
historyNanos - the history nanos
Method Detail

active

public final boolean active()
Description copied from interface: ExtendedStatistics.Statistic
Active.

Specified by:
active in interface ExtendedStatistics.Statistic<T extends Number>
Returns:
true, if successful

value

public T value()
Description copied from interface: ExtendedStatistics.Statistic
Value.

Specified by:
value in interface ExtendedStatistics.Statistic<T extends Number>
Returns:
the t

history

public final List<org.terracotta.statistics.archive.Timestamped<T>> history()
Description copied from interface: ExtendedStatistics.Statistic
History.

Specified by:
history in interface ExtendedStatistics.Statistic<T extends Number>
Returns:
the list

ehcache

Copyright © 2003-2013 Terracotta, Inc.. All Rights Reserved.