com.espertech.esper.dispatch
Class DispatchServiceImpl

java.lang.Object
  extended by com.espertech.esper.dispatch.DispatchServiceImpl
All Implemented Interfaces:
DispatchService

public class DispatchServiceImpl
extends java.lang.Object
implements DispatchService

Implements dispatch service using a thread-local linked list of Dispatchable instances.


Constructor Summary
DispatchServiceImpl()
           
 
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
 

Constructor Detail

DispatchServiceImpl

public DispatchServiceImpl()
Method Detail

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

© 2006-2016 EsperTech Inc.
All rights reserved.
Visit us at espertech.com