com.espertech.esper.epl.named
Class NamedWindowTailView
java.lang.Object
com.espertech.esper.epl.named.NamedWindowTailView
public class NamedWindowTailView
- extends java.lang.Object
This view is hooked into a named window's view chain as the last view and handles dispatching of named window
insert and remove stream results via NamedWindowMgmtService
to consuming statements.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
eventType
protected final EventType eventType
namedWindowMgmtService
protected final NamedWindowMgmtService namedWindowMgmtService
namedWindowDispatchService
protected final NamedWindowDispatchService namedWindowDispatchService
statementResultService
protected final StatementResultService statementResultService
revisionProcessor
protected final ValueAddEventProcessor revisionProcessor
isPrioritized
protected final boolean isPrioritized
isParentBatchWindow
protected final boolean isParentBatchWindow
consumersNonContext
protected volatile java.util.Map<EPStatementAgentInstanceHandle,java.util.List<NamedWindowConsumerView>> consumersNonContext
timeSourceService
protected final TimeSourceService timeSourceService
threadingConfig
protected final ConfigurationEngineDefaults.Threading threadingConfig
NamedWindowTailView
public NamedWindowTailView(EventType eventType,
NamedWindowMgmtService namedWindowMgmtService,
NamedWindowDispatchService namedWindowDispatchService,
StatementResultService statementResultService,
ValueAddEventProcessor revisionProcessor,
boolean prioritized,
boolean parentBatchWindow,
TimeSourceService timeSourceService,
ConfigurationEngineDefaults.Threading threadingConfig)
isParentBatchWindow
public boolean isParentBatchWindow()
- Returns true to indicate that the data window view is a batch view.
- Returns:
- true if batch view
getEventType
public EventType getEventType()
getStatementResultService
public StatementResultService getStatementResultService()
getNamedWindowMgmtService
public NamedWindowMgmtService getNamedWindowMgmtService()
getNamedWindowDispatchService
public NamedWindowDispatchService getNamedWindowDispatchService()
isPrioritized
public boolean isPrioritized()
getRevisionProcessor
public ValueAddEventProcessor getRevisionProcessor()
getConsumersNonContext
public java.util.Map<EPStatementAgentInstanceHandle,java.util.List<NamedWindowConsumerView>> getConsumersNonContext()
addConsumer
public NamedWindowConsumerView addConsumer(NamedWindowConsumerDesc consumerDesc)
removeConsumer
public void removeConsumer(NamedWindowConsumerView namedWindowConsumerView)
- Called by the consumer view to indicate it was stopped or destroyed, such that the
consumer can be deregistered and further dispatches disregard this consumer.
- Parameters:
namedWindowConsumerView
- is the consumer representative view
addDispatches
public void addDispatches(NamedWindowConsumerLatchFactory latchFactory,
java.util.Map<EPStatementAgentInstanceHandle,java.util.List<NamedWindowConsumerView>> consumersInContext,
NamedWindowDeltaData delta,
AgentInstanceContext agentInstanceContext)
makeLatchFactory
public NamedWindowConsumerLatchFactory makeLatchFactory()