OSMQ
v2.0.1

osmq.util
Class EventRateMgr

java.lang.Object
  extended byosmq.util.EventRateMgr

public class EventRateMgr
extends java.lang.Object

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

EventRateMgr

public EventRateMgr()
Method Detail

incrementCount

public void incrementCount()

incrementCountBy

public void incrementCountBy(int value)

reset

public void reset()
Resets the time duration to zero and the number of events to zero.


getCount

public long getCount()
Returns the number of events that have occured since the manager was instantiated or the manager was reset.


setCounter

public void setCounter(EventCounter counter)

getCounter

public EventCounter getCounter()

getRatePerSec

public int getRatePerSec()

(c) 2000 - 2003 MQue Systems
All Rights Reserved