public interface ThreadingService
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroy thread pools.
|
BlockingQueue<Runnable> |
getInboundQueue()
Returns the inbound queue.
|
ThreadPoolExecutor |
getInboundThreadPool()
Returns the inbound thread pool
|
BlockingQueue<Runnable> |
getOutboundQueue()
Returns the outbound queue.
|
ThreadPoolExecutor |
getOutboundThreadPool()
Returns the outbound thread pool
|
BlockingQueue<Runnable> |
getRouteQueue()
Returns the route queue.
|
ThreadPoolExecutor |
getRouteThreadPool()
Returns the route thread pool
|
BlockingQueue<Runnable> |
getTimerQueue()
Returns the timer queue.
|
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.
|
Thread |
makeEventSourceThread(String engineURI,
String sourceName,
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 timerUnit)
Submit timer execution work unit.
|
void destroy()
void initThreading(EPServicesContext services, EPRuntimeImpl runtime)
services
- engine-level service contextruntime
- runtimeboolean isTimerThreading()
void submitTimerWork(TimerUnit timerUnit)
timerUnit
- unit of workboolean isInboundThreading()
void submitInbound(InboundUnitRunnable unit)
unit
- unit of workboolean isRouteThreading()
void submitRoute(RouteUnitRunnable unit)
unit
- unit of workboolean isOutboundThreading()
void submitOutbound(OutboundUnitRunnable unit)
unit
- unit of workBlockingQueue<Runnable> getOutboundQueue()
ThreadPoolExecutor getOutboundThreadPool()
BlockingQueue<Runnable> getRouteQueue()
ThreadPoolExecutor getRouteThreadPool()
BlockingQueue<Runnable> getTimerQueue()
ThreadPoolExecutor getTimerThreadPool()
BlockingQueue<Runnable> getInboundQueue()
ThreadPoolExecutor getInboundThreadPool()