|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.eventadmin.impl.tasks.DispatchTask
public class DispatchTask
This class is the core of the event dispatching (for both, synchronous and asynchronous). It implements handover and timeout capabilities.
Constructor Summary | |
---|---|
DispatchTask(TaskProducer producer,
Scheduler scheduler,
HandoverTask handover)
The constructor of the object. |
Method Summary | |
---|---|
void |
handover()
This method will trigger a callback to the handover callback and stop this task. |
void |
hold()
This will pause the task (including its timeout clock) until a call to resume() |
void |
resume()
This will let the previously hold task resume. |
void |
run()
This will loop until the producer returns null. |
void |
stop()
This method stops the tasks without a handover |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DispatchTask(TaskProducer producer, Scheduler scheduler, HandoverTask handover)
producer
- The producer (i.e., the event queue) that provides the next
tasksscheduler
- The scheduler to use for timeout actionshandover
- The callback to use on timeouts and handoversMethod Detail |
---|
public void run()
run
in interface Runnable
Runnable.run()
public void handover()
public void stop()
public void hold()
public void resume()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |