|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.eventgnosis.util.PassiveTimer
Implements passive timer functionality.
Passive means that it waits for clients to call to see if the interval has expired.
Initial value of zero (0) means never expire.
Constructor Summary | |
PassiveTimer(long interval)
Creates a new instance of PassiveTimer. |
Method Summary | |
long |
getInterval()
Get timer expiration interval. |
java.lang.String |
getRuntimeXml()
|
long |
getStartTime()
Get time of the last reset, in milliseconds. The PassiveTimer is also reset at initialization. |
long |
getTimeNow()
|
boolean |
isExpired()
|
long |
msecsRemaining()
|
void |
reset()
Resets timer. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public PassiveTimer(long interval)
interval
- - timer expiration time in milliseconds.Method Detail |
public long getInterval()
public java.lang.String getRuntimeXml()
public long getStartTime()
public long getTimeNow()
public boolean isExpired()
true
if interval is expired; false
otherwisepublic long msecsRemaining()
public void reset()
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |