|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A Simple callback interface for timers.
Method Summary | |
---|---|
void |
cancel(Object token)
Cancels an event previously schedule d.
|
Object |
schedule(long millis,
QueueElementIF event)
dispatches a specified event some time in the future. |
Method Detail |
public Object schedule(long millis, QueueElementIF event)
millis
- The number of milliseconds from now to
dispatch the event.event
- The QueueElementIF
to dispatch.
cancel
in order to cancel
the event before it is dispatched.cancel(java.lang.Object)
public void cancel(Object token)
schedule
d.
If the event has already been dispatched, this method has no effect.
token
- The Object
returned by
schedule
.
IllegalArgumentException
- if token
is not a
token returned by the internal timer.schedule(long, seda.sandStorm.api.QueueElementIF)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |