public class SequenceSingleStreamReceiver extends Object implements StreamReceiver, StreamElement
Modifier and Type | Field and Description |
---|---|
protected int |
complexEventSize |
protected List<StateEvent> |
currentEvents |
protected int |
currentState |
protected StreamProcessor |
firstSimpleStreamProcessor |
protected List<StateEvent> |
nextEvents |
protected SequenceState |
nextState |
protected SequenceState |
state |
Constructor and Description |
---|
SequenceSingleStreamReceiver(SequenceState state,
StreamProcessor firstSimpleStreamProcessor,
int complexEventSize) |
Modifier and Type | Method and Description |
---|---|
void |
addToNextEvents(StateEvent stateEvent) |
String |
getStreamId() |
SchedulerQueue<StreamEvent> |
getWindow() |
void |
init() |
void |
moveNextEventsToCurrentEvents() |
void |
receive(StreamEvent streamEvent) |
protected void |
sendForProcess(StreamEvent event) |
protected int complexEventSize
protected SequenceState state
protected SequenceState nextState
protected StreamProcessor firstSimpleStreamProcessor
protected List<StateEvent> currentEvents
protected List<StateEvent> nextEvents
protected final int currentState
public SequenceSingleStreamReceiver(SequenceState state, StreamProcessor firstSimpleStreamProcessor, int complexEventSize)
public void init()
public void receive(StreamEvent streamEvent)
receive
in interface StreamReceiver
protected void sendForProcess(StreamEvent event)
public String getStreamId()
getStreamId
in interface StreamReceiver
getStreamId
in interface StreamElement
public SchedulerQueue<StreamEvent> getWindow()
getWindow
in interface StreamElement
public void addToNextEvents(StateEvent stateEvent)
public void moveNextEventsToCurrentEvents()
Copyright © 2012. All Rights Reserved.