Class SinkCallback
- java.lang.Object
-
- io.siddhi.core.stream.output.StreamCallback
-
- io.siddhi.core.stream.output.sink.SinkCallback
-
- All Implemented Interfaces:
StreamJunction.Receiver
public class SinkCallback extends StreamCallback
Sink Callback is used to getEvents from Siddhi Streams usingStreamJunctionand send them toSinkMappers to do the mapping.
-
-
Constructor Summary
Constructors Constructor Description SinkCallback(List<Sink> sinks, io.siddhi.query.api.definition.AbstractDefinition outputStreamDefinition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinit(SiddhiAppContext siddhiAppContext)voidreceive(Event event)voidreceive(Event[] events)-
Methods inherited from class io.siddhi.core.stream.output.StreamCallback
getStreamDefinition, getStreamId, receive, receive, receive, receiveEvents, setContext, setStreamDefinition, setStreamId, startProcessing, stopProcessing, toMap, toMap
-
-
-
-
Method Detail
-
init
public void init(SiddhiAppContext siddhiAppContext)
-
receive
public void receive(Event event)
- Specified by:
receivein interfaceStreamJunction.Receiver- Overrides:
receivein classStreamCallback
-
receive
public void receive(Event[] events)
- Specified by:
receivein interfaceStreamJunction.Receiver- Specified by:
receivein classStreamCallback
-
-