|
OSMQ v2.0.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectosmq.util.EventRateMgr
A class that tracks time duration and number of events. It is used to calculate the rate of activity of the events that it tracks.
Constructor Summary | |
EventRateMgr()
|
Method Summary | |
long |
getCount()
Returns the number of events that have occured since the manager was instantiated or the manager was reset. |
EventCounter |
getCounter()
|
int |
getRatePerSec()
|
void |
incrementCount()
|
void |
incrementCountBy(int value)
|
void |
reset()
Resets the time duration to zero and the number of events to zero. |
void |
setCounter(EventCounter counter)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public EventRateMgr()
Method Detail |
public void incrementCount()
public void incrementCountBy(int value)
public void reset()
public long getCount()
public void setCounter(EventCounter counter)
public EventCounter getCounter()
public int getRatePerSec()
|
(c) 2000 - 2003 MQue Systems All Rights Reserved |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |