|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.util.SimpleTimer
Simple event scheduler - toss an event on the queue and it gets fired at the appropriate time. The method that is fired however should NOT block (otherwise they b0rk the timer).
Nested Class Summary | |
static interface |
SimpleTimer.TimedEvent
Simple interface for events to be queued up and notified on expiration |
Method Summary | |
void |
addEvent(SimpleTimer.TimedEvent event,
long timeoutMs)
Queue up the given event to be fired no sooner than timeoutMs from now |
static SimpleTimer |
getInstance()
|
boolean |
removeEvent(SimpleTimer.TimedEvent evt)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static SimpleTimer getInstance()
public void addEvent(SimpleTimer.TimedEvent event, long timeoutMs)
public boolean removeEvent(SimpleTimer.TimedEvent evt)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |