|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.ehcache.util.ratestatistics.UnlockedRateStatistic
public class UnlockedRateStatistic
A lightweight non-thread-safe rate statistic implementation.
Constructor Summary | |
---|---|
UnlockedRateStatistic(long averagePeriod,
TimeUnit unit)
Create an UnlockedRateStatistic 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 UnlockedRateStatistic(long averagePeriod, TimeUnit unit)
averagePeriod
- average periodunit
- period time unitMethod 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 |