public class NamedWindowDispatchServiceImpl extends Object implements NamedWindowDispatchService
Constructor and Description |
---|
NamedWindowDispatchServiceImpl(SchedulingService schedulingService,
VariableService variableService,
TableService tableService,
boolean isPrioritized,
ManagedReadWriteLock eventProcessingRWLock,
ExceptionHandlingService exceptionHandlingService,
MetricReportingService metricReportingService) |
Modifier and Type | Method and Description |
---|---|
void |
addDispatch(NamedWindowConsumerLatchFactory latchFactory,
NamedWindowDeltaData delta,
Map<EPStatementAgentInstanceHandle,List<NamedWindowConsumerView>> consumers)
For use to add a result of a named window that must be dispatched to consuming views.
|
NamedWindowProcessor |
createProcessor(String name,
NamedWindowMgmtServiceImpl namedWindowMgmtService,
NamedWindowDispatchService namedWindowDispatchService,
String contextName,
EventType eventType,
StatementResultService statementResultService,
ValueAddEventProcessor revisionProcessor,
String eplExpression,
String statementName,
boolean isPrioritized,
boolean isEnableSubqueryIndexShare,
boolean enableQueryPlanLog,
MetricReportingService metricReportingService,
boolean isBatchingDataWindow,
boolean isVirtualDataWindow,
Set<String> optionalUniqueKeyProps,
String eventTypeAsName,
StatementContext statementContextCreateWindow) |
NamedWindowTailView |
createTailView(EventType eventType,
NamedWindowMgmtService namedWindowMgmtService,
NamedWindowDispatchService namedWindowDispatchService,
StatementResultService statementResultService,
ValueAddEventProcessor revisionProcessor,
boolean prioritized,
boolean parentBatchWindow,
String contextName,
TimeSourceService timeSourceService,
ConfigurationEngineDefaults.Threading threadingConfig) |
void |
destroy()
Destroy service.
|
boolean |
dispatch()
Dispatch events of the insert and remove stream of named windows to consumers, as part of the
main event processing or dispatch loop.
|
LinkedHashMap<NamedWindowConsumerView,NamedWindowDeltaData> |
getDeltaPerConsumer(Object perStmtObj,
EPStatementAgentInstanceHandle handle) |
public NamedWindowDispatchServiceImpl(SchedulingService schedulingService, VariableService variableService, TableService tableService, boolean isPrioritized, ManagedReadWriteLock eventProcessingRWLock, ExceptionHandlingService exceptionHandlingService, MetricReportingService metricReportingService)
public NamedWindowProcessor createProcessor(String name, NamedWindowMgmtServiceImpl namedWindowMgmtService, NamedWindowDispatchService namedWindowDispatchService, String contextName, EventType eventType, StatementResultService statementResultService, ValueAddEventProcessor revisionProcessor, String eplExpression, String statementName, boolean isPrioritized, boolean isEnableSubqueryIndexShare, boolean enableQueryPlanLog, MetricReportingService metricReportingService, boolean isBatchingDataWindow, boolean isVirtualDataWindow, Set<String> optionalUniqueKeyProps, String eventTypeAsName, StatementContext statementContextCreateWindow)
createProcessor
in interface NamedWindowDispatchService
public NamedWindowTailView createTailView(EventType eventType, NamedWindowMgmtService namedWindowMgmtService, NamedWindowDispatchService namedWindowDispatchService, StatementResultService statementResultService, ValueAddEventProcessor revisionProcessor, boolean prioritized, boolean parentBatchWindow, String contextName, TimeSourceService timeSourceService, ConfigurationEngineDefaults.Threading threadingConfig)
createTailView
in interface NamedWindowDispatchService
public void destroy()
NamedWindowDispatchService
destroy
in interface NamedWindowDispatchService
public void addDispatch(NamedWindowConsumerLatchFactory latchFactory, NamedWindowDeltaData delta, Map<EPStatementAgentInstanceHandle,List<NamedWindowConsumerView>> consumers)
NamedWindowDispatchService
addDispatch
in interface NamedWindowDispatchService
latchFactory
- latch factorydelta
- is the result to dispatchconsumers
- is the destination of the dispatch, a map of statements to one or more consuming viewspublic boolean dispatch()
NamedWindowDispatchService
dispatch
in interface NamedWindowDispatchService
public LinkedHashMap<NamedWindowConsumerView,NamedWindowDeltaData> getDeltaPerConsumer(Object perStmtObj, EPStatementAgentInstanceHandle handle)