net.esper.dispatch
Class DispatchServiceImpl
java.lang.Object
net.esper.dispatch.DispatchServiceImpl
- All Implemented Interfaces:
- DispatchService
public class DispatchServiceImpl
- extends Object
- implements DispatchService
Implements dispatch service using a thread-local linked list of Dispatchable instances.
Method Summary |
void |
addExternal(Dispatchable dispatchable)
Add a Dispatchable implementation. |
void |
dispatch()
Execute all Dispatchable implementations added to the service since the last invocation of this method. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DispatchServiceImpl
public DispatchServiceImpl()
dispatch
public void dispatch()
- Description copied from interface:
DispatchService
- Execute all Dispatchable implementations added to the service since the last invocation of this method.
- Specified by:
dispatch
in interface DispatchService
addExternal
public void addExternal(Dispatchable dispatchable)
- Description copied from interface:
DispatchService
- Add a Dispatchable implementation.
- Specified by:
addExternal
in interface DispatchService
- Parameters:
dispatchable
- to execute later