|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.core.thread.ThreadingServiceImpl
public class ThreadingServiceImpl
Implementation for engine-level threading.
Constructor Summary | |
---|---|
ThreadingServiceImpl(ConfigurationEngineDefaults.Threading threadingConfig)
Ctor. |
Method Summary | |
---|---|
void |
destroy()
Destroy thread pools. |
java.util.concurrent.BlockingQueue<java.lang.Runnable> |
getInboundQueue()
Returns the inbound queue. |
java.util.concurrent.ThreadPoolExecutor |
getInboundThreadPool()
Returns the inbound thread pool |
java.util.concurrent.BlockingQueue<java.lang.Runnable> |
getOutboundQueue()
Returns the outbound queue. |
java.util.concurrent.ThreadPoolExecutor |
getOutboundThreadPool()
Returns the outbound thread pool |
java.util.concurrent.BlockingQueue<java.lang.Runnable> |
getRouteQueue()
Returns the route queue. |
java.util.concurrent.ThreadPoolExecutor |
getRouteThreadPool()
Returns the route thread pool |
java.util.concurrent.BlockingQueue<java.lang.Runnable> |
getTimerQueue()
Returns the timer queue. |
java.util.concurrent.ThreadPoolExecutor |
getTimerThreadPool()
Returns the timer thread pool |
void |
initThreading(EPServicesContext services,
EPRuntimeImpl runtime)
Initialize thread pools. |
boolean |
isInboundThreading()
Returns true for inbound threading enabled. |
boolean |
isOutboundThreading()
Returns true for outbound threading enabled. |
boolean |
isRouteThreading()
Returns true for route execution threading enabled. |
boolean |
isTimerThreading()
Returns true for timer execution threading enabled. |
java.lang.Thread |
makeEventSourceThread(java.lang.String engineURI,
java.lang.String sourceName,
java.lang.Runnable runnable)
|
void |
submitInbound(InboundUnitRunnable unit)
Submit inbound work unit. |
void |
submitOutbound(OutboundUnitRunnable unit)
Submit outbound work unit. |
void |
submitRoute(RouteUnitRunnable unit)
Submit route work unit. |
void |
submitTimerWork(TimerUnit unit)
Submit timer execution work unit. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ThreadingServiceImpl(ConfigurationEngineDefaults.Threading threadingConfig)
threadingConfig
- configurationMethod Detail |
---|
public boolean isRouteThreading()
ThreadingService
isRouteThreading
in interface ThreadingService
public boolean isInboundThreading()
ThreadingService
isInboundThreading
in interface ThreadingService
public boolean isTimerThreading()
ThreadingService
isTimerThreading
in interface ThreadingService
public boolean isOutboundThreading()
ThreadingService
isOutboundThreading
in interface ThreadingService
public void initThreading(EPServicesContext services, EPRuntimeImpl runtime)
ThreadingService
initThreading
in interface ThreadingService
services
- engine-level service contextruntime
- runtimepublic void submitRoute(RouteUnitRunnable unit)
ThreadingService
submitRoute
in interface ThreadingService
unit
- unit of workpublic void submitInbound(InboundUnitRunnable unit)
ThreadingService
submitInbound
in interface ThreadingService
unit
- unit of workpublic void submitOutbound(OutboundUnitRunnable unit)
ThreadingService
submitOutbound
in interface ThreadingService
unit
- unit of workpublic void submitTimerWork(TimerUnit unit)
ThreadingService
submitTimerWork
in interface ThreadingService
unit
- unit of workpublic java.util.concurrent.BlockingQueue<java.lang.Runnable> getOutboundQueue()
ThreadingService
getOutboundQueue
in interface ThreadingService
public java.util.concurrent.ThreadPoolExecutor getOutboundThreadPool()
ThreadingService
getOutboundThreadPool
in interface ThreadingService
public java.util.concurrent.BlockingQueue<java.lang.Runnable> getRouteQueue()
ThreadingService
getRouteQueue
in interface ThreadingService
public java.util.concurrent.ThreadPoolExecutor getRouteThreadPool()
ThreadingService
getRouteThreadPool
in interface ThreadingService
public java.util.concurrent.BlockingQueue<java.lang.Runnable> getTimerQueue()
ThreadingService
getTimerQueue
in interface ThreadingService
public java.util.concurrent.ThreadPoolExecutor getTimerThreadPool()
ThreadingService
getTimerThreadPool
in interface ThreadingService
public java.util.concurrent.BlockingQueue<java.lang.Runnable> getInboundQueue()
ThreadingService
getInboundQueue
in interface ThreadingService
public java.util.concurrent.ThreadPoolExecutor getInboundThreadPool()
ThreadingService
getInboundThreadPool
in interface ThreadingService
public void destroy()
ThreadingService
destroy
in interface ThreadingService
public java.lang.Thread makeEventSourceThread(java.lang.String engineURI, java.lang.String sourceName, java.lang.Runnable runnable)
makeEventSourceThread
in interface ThreadingService
|
© 2006-2015 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |