Class JoinExecStrategyDispatchable
java.lang.Object
com.espertech.esper.common.internal.epl.join.base.JoinExecStrategyDispatchable
- All Implemented Interfaces:
EPStatementDispatch
,BufferObserver
public class JoinExecStrategyDispatchable
extends Object
implements BufferObserver, EPStatementDispatch
This class reacts to any new data buffered by registring with the dispatch service.
When dispatched via execute, it takes the buffered events and hands these to the join execution strategy.
-
Constructor Summary
ConstructorDescriptionJoinExecStrategyDispatchable
(JoinExecutionStrategy joinExecutionStrategy, int numStreams, AgentInstanceContext agentInstanceContext) -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute()
Execute dispatch.void
newData
(int streamId, FlushedEventBuffer newEventBuffer, FlushedEventBuffer oldEventBuffer) Receive new and old events from a stream.
-
Constructor Details
-
JoinExecStrategyDispatchable
public JoinExecStrategyDispatchable(JoinExecutionStrategy joinExecutionStrategy, int numStreams, AgentInstanceContext agentInstanceContext)
-
-
Method Details
-
execute
public void execute()Description copied from interface:EPStatementDispatch
Execute dispatch.- Specified by:
execute
in interfaceEPStatementDispatch
-
newData
public void newData(int streamId, FlushedEventBuffer newEventBuffer, FlushedEventBuffer oldEventBuffer) Description copied from interface:BufferObserver
Receive new and old events from a stream.- Specified by:
newData
in interfaceBufferObserver
- Parameters:
streamId
- - the stream number sending the eventsnewEventBuffer
- - buffer for new eventsoldEventBuffer
- - buffer for old events
-