| 
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.ehcache.util.ratestatistics.AtomicRateStatistic
public class AtomicRateStatistic
A thread-safe rate statistic implementation.
| Constructor Summary | |
|---|---|
AtomicRateStatistic(long averagePeriod,
                    TimeUnit unit)
Create an AtomicRateStatistic instance with the given average period.  | 
|
| Method Summary | |
|---|---|
 void | 
event()
Fired to record the occurrence of a monitored event.  | 
 long | 
getCount()
Returns the total number of events that have occurred in the lifetime of this statistic.  | 
 float | 
getRate()
Return the rate of events per unit time.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public AtomicRateStatistic(long averagePeriod,
                           TimeUnit unit)
averagePeriod - average periodunit - period time unit| Method Detail | 
|---|
public void event()
public long getCount()
public float getRate()
  | 
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||