Class ThreadingServiceImpl
java.lang.Object
com.espertech.esper.runtime.internal.kernel.thread.ThreadingServiceImpl
- All Implemented Interfaces:
com.espertech.esper.common.internal.statement.thread.ThreadingCommon
,ThreadingService
Implementation for runtime-level threading.
-
Constructor Summary
ConstructorDescriptionThreadingServiceImpl
(com.espertech.esper.common.client.configuration.runtime.ConfigurationRuntimeThreading threadingConfig) Ctor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
Destroy thread pools.Returns the inbound queue.Returns the inbound thread poolReturns the outbound queue.Returns the outbound thread poolReturns the route queue.Returns the route thread poolReturns the timer queue.Returns the timer thread poolvoid
initThreading
(String uri, EPServicesEvaluation services) Initialize thread pools.boolean
Returns true for inbound threading enabled.boolean
Returns true for outbound threading enabled.boolean
Returns true for route execution threading enabled.boolean
Returns true for timer execution threading enabled.makeEventSourceThread
(String runtimeURI, String sourceName, Runnable runnable) void
submitInbound
(com.espertech.esper.common.client.EventBean event, com.espertech.esper.common.internal.event.util.EPRuntimeEventProcessWrapped runtimeEventSender) void
Submit inbound work unit.void
Submit outbound work unit.void
submitRoute
(RouteUnitRunnable unit) Submit route work unit.void
submitTimerWork
(TimerUnit unit) Submit timer execution work unit.
-
Constructor Details
-
ThreadingServiceImpl
public ThreadingServiceImpl(com.espertech.esper.common.client.configuration.runtime.ConfigurationRuntimeThreading threadingConfig) Ctor.- Parameters:
threadingConfig
- configuration
-
-
Method Details
-
isRouteThreading
public boolean isRouteThreading()Description copied from interface:ThreadingService
Returns true for route execution threading enabled.- Specified by:
isRouteThreading
in interfaceThreadingService
- Returns:
- indicator
-
isInboundThreading
public boolean isInboundThreading()Description copied from interface:ThreadingService
Returns true for inbound threading enabled.- Specified by:
isInboundThreading
in interfacecom.espertech.esper.common.internal.statement.thread.ThreadingCommon
- Specified by:
isInboundThreading
in interfaceThreadingService
- Returns:
- indicator
-
isTimerThreading
public boolean isTimerThreading()Description copied from interface:ThreadingService
Returns true for timer execution threading enabled.- Specified by:
isTimerThreading
in interfaceThreadingService
- Returns:
- indicator
-
isOutboundThreading
public boolean isOutboundThreading()Description copied from interface:ThreadingService
Returns true for outbound threading enabled.- Specified by:
isOutboundThreading
in interfaceThreadingService
- Returns:
- indicator
-
initThreading
Description copied from interface:ThreadingService
Initialize thread pools.- Specified by:
initThreading
in interfaceThreadingService
- Parameters:
uri
- uriservices
- services
-
submitRoute
Description copied from interface:ThreadingService
Submit route work unit.- Specified by:
submitRoute
in interfaceThreadingService
- Parameters:
unit
- unit of work
-
submitInbound
Description copied from interface:ThreadingService
Submit inbound work unit.- Specified by:
submitInbound
in interfaceThreadingService
- Parameters:
unit
- unit of work
-
submitOutbound
Description copied from interface:ThreadingService
Submit outbound work unit.- Specified by:
submitOutbound
in interfaceThreadingService
- Parameters:
unit
- unit of work
-
submitTimerWork
Description copied from interface:ThreadingService
Submit timer execution work unit.- Specified by:
submitTimerWork
in interfaceThreadingService
- Parameters:
unit
- unit of work
-
getOutboundQueue
Description copied from interface:ThreadingService
Returns the outbound queue.- Specified by:
getOutboundQueue
in interfaceThreadingService
- Returns:
- queue
-
getOutboundThreadPool
Description copied from interface:ThreadingService
Returns the outbound thread pool- Specified by:
getOutboundThreadPool
in interfaceThreadingService
- Returns:
- thread pool
-
getRouteQueue
Description copied from interface:ThreadingService
Returns the route queue.- Specified by:
getRouteQueue
in interfaceThreadingService
- Returns:
- queue
-
getRouteThreadPool
Description copied from interface:ThreadingService
Returns the route thread pool- Specified by:
getRouteThreadPool
in interfaceThreadingService
- Returns:
- thread pool
-
getTimerQueue
Description copied from interface:ThreadingService
Returns the timer queue.- Specified by:
getTimerQueue
in interfaceThreadingService
- Returns:
- queue
-
getTimerThreadPool
Description copied from interface:ThreadingService
Returns the timer thread pool- Specified by:
getTimerThreadPool
in interfaceThreadingService
- Returns:
- thread pool
-
getInboundQueue
Description copied from interface:ThreadingService
Returns the inbound queue.- Specified by:
getInboundQueue
in interfaceThreadingService
- Returns:
- queue
-
getInboundThreadPool
Description copied from interface:ThreadingService
Returns the inbound thread pool- Specified by:
getInboundThreadPool
in interfaceThreadingService
- Returns:
- thread pool
-
destroy
public void destroy()Description copied from interface:ThreadingService
Destroy thread pools.- Specified by:
destroy
in interfaceThreadingService
-
makeEventSourceThread
- Specified by:
makeEventSourceThread
in interfaceThreadingService
-
submitInbound
public void submitInbound(com.espertech.esper.common.client.EventBean event, com.espertech.esper.common.internal.event.util.EPRuntimeEventProcessWrapped runtimeEventSender) - Specified by:
submitInbound
in interfacecom.espertech.esper.common.internal.statement.thread.ThreadingCommon
-