|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--ostore.dispatch.Classifier.DefaultTimerCB
The default implementation of TimerCB, which uses
seda.sandStorm.core.ssTimers to store and trigger events.
| Field Summary | |
|---|---|
protected SinkIF |
_sink
A SinkIF onto which the events will be enqueued.
|
| Constructor Summary | |
|---|---|
Classifier.DefaultTimerCB(SinkIF sink)
Creates a new DefaultTimerCB which will enqueue
events onto a specified sink |
|
| Method Summary | |
|---|---|
void |
cancel(Object token)
Cancels an event previously scheduled.
|
Object |
schedule(long millis,
QueueElementIF event)
dispatches a specified event some time in the future. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected SinkIF _sink
SinkIF onto which the events will be enqueued.
Presumably a Classifier.
| Constructor Detail |
public Classifier.DefaultTimerCB(SinkIF sink)
DefaultTimerCB which will enqueue
events onto a specified sink
sink - The SinkIF onto which the events will
be enqueued. Presumably a Classifier.| Method Detail |
public Object schedule(long millis,
QueueElementIF event)
Classifier.TimerCB
schedule in interface Classifier.TimerCBmillis - 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.Classifier.TimerCB.cancel(java.lang.Object)public void cancel(Object token)
Classifier.TimerCBscheduled.
If the event has already been dispatched, this method has no effect.
cancel in interface Classifier.TimerCBtoken - The Object returned by
schedule.Classifier.TimerCB.schedule(long, seda.sandStorm.api.QueueElementIF)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||