public abstract class StreamCallback extends Object implements StreamJunction.Receiver
StreamJunction. This class should be extended if one intends
to get events from a Siddhi Stream.| Constructor and Description |
|---|
StreamCallback() |
| Modifier and Type | Method and Description |
|---|---|
org.wso2.siddhi.query.api.definition.AbstractDefinition |
getStreamDefinition() |
String |
getStreamId() |
void |
receive(ComplexEvent complexEvent) |
void |
receive(Event event) |
abstract void |
receive(Event[] events) |
void |
receive(List<Event> events) |
void |
receive(long timestamp,
Object[] data) |
void |
receiveEvents(Event[] events) |
void |
setContext(SiddhiAppContext siddhiAppContext) |
void |
setStreamDefinition(org.wso2.siddhi.query.api.definition.AbstractDefinition streamDefinition) |
void |
setStreamId(String streamId) |
void |
startProcessing() |
void |
stopProcessing() |
public String getStreamId()
getStreamId in interface StreamJunction.Receiverpublic void setStreamId(String streamId)
public org.wso2.siddhi.query.api.definition.AbstractDefinition getStreamDefinition()
public void setStreamDefinition(org.wso2.siddhi.query.api.definition.AbstractDefinition streamDefinition)
public void setContext(SiddhiAppContext siddhiAppContext)
public void receive(ComplexEvent complexEvent)
receive in interface StreamJunction.Receiverpublic void receive(Event event)
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.Receiverpublic void receiveEvents(Event[] events)
public abstract void receive(Event[] events)
receive in interface StreamJunction.Receiverpublic void startProcessing()
public void stopProcessing()
Copyright © 2018 WSO2. All rights reserved.