public class ProcessStreamReceiver extends Object implements StreamJunction.Receiver
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
batchProcessingAllowed |
protected LatencyTracker |
latencyTracker |
protected LockWrapper |
lockWrapper |
protected Processor |
next |
protected SiddhiAppContext |
siddhiAppContext |
protected List<PreStateProcessor> |
stateProcessors |
protected int |
stateProcessorsSize |
protected String |
streamId |
| Constructor and Description |
|---|
ProcessStreamReceiver(String streamId,
LatencyTracker latencyTracker,
String queryName,
SiddhiAppContext siddhiAppContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
addStatefulProcessor(PreStateProcessor stateProcessor) |
ProcessStreamReceiver |
clone(String key) |
String |
getStreamId() |
void |
init() |
protected void |
processAndClear(ComplexEventChunk<StreamEvent> streamEventChunk) |
void |
receive(ComplexEvent complexEvents) |
void |
receive(Event event) |
void |
receive(Event[] events) |
void |
receive(List<Event> events) |
void |
receive(long timestamp,
Object[] data) |
void |
setBatchProcessingAllowed(boolean batchProcessingAllowed) |
void |
setLockWrapper(LockWrapper lockWrapper) |
void |
setMetaStreamEvent(MetaStreamEvent metaStreamEvent) |
void |
setNext(Processor next) |
void |
setSiddhiDebugger(SiddhiDebugger siddhiDebugger) |
void |
setStreamEventPool(StreamEventPool streamEventPool) |
boolean |
toStream() |
protected String streamId
protected Processor next
protected List<PreStateProcessor> stateProcessors
protected int stateProcessorsSize
protected LatencyTracker latencyTracker
protected LockWrapper lockWrapper
protected boolean batchProcessingAllowed
protected SiddhiAppContext siddhiAppContext
public ProcessStreamReceiver(String streamId, LatencyTracker latencyTracker, String queryName, SiddhiAppContext siddhiAppContext)
public String getStreamId()
getStreamId in interface StreamJunction.Receiverpublic ProcessStreamReceiver clone(String key)
public void setSiddhiDebugger(SiddhiDebugger siddhiDebugger)
public void receive(ComplexEvent complexEvents)
receive in interface StreamJunction.Receiverpublic void receive(Event event)
receive in interface StreamJunction.Receiverpublic void receive(Event[] events)
receive in interface StreamJunction.Receiverpublic void receive(List<Event> events)
receive in interface StreamJunction.Receiverpublic void receive(long timestamp,
Object[] data)
receive in interface StreamJunction.Receiverprotected void processAndClear(ComplexEventChunk<StreamEvent> streamEventChunk)
public void setMetaStreamEvent(MetaStreamEvent metaStreamEvent)
public boolean toStream()
public void setBatchProcessingAllowed(boolean batchProcessingAllowed)
public void setNext(Processor next)
public void setStreamEventPool(StreamEventPool streamEventPool)
public void setLockWrapper(LockWrapper lockWrapper)
public void init()
public void addStatefulProcessor(PreStateProcessor stateProcessor)
Copyright © 2019 WSO2. All rights reserved.