Class SourceHandler<S extends State>
- java.lang.Object
-
- io.siddhi.core.stream.input.source.SourceHandler<S>
-
- Type Parameters:
S- current state for the Source Holder
- All Implemented Interfaces:
InputEventHandlerCallback
public abstract class SourceHandler<S extends State> extends Object implements InputEventHandlerCallback
SourceHandler is an optional implementable class that wrapsInputHandler. It will do optional processing to the events before sending the events to the input handler
-
-
Constructor Summary
Constructors Constructor Description SourceHandler()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description StringgetId()InputHandlergetInputHandler()abstract StateFactoryinit(String siddhiAppName, SourceSyncCallback sourceSyncCallback, io.siddhi.query.api.definition.StreamDefinition streamDefinition, SiddhiAppContext siddhiAppContext)abstract voidsendEvent(Event[] events, String[] transportSyncProperties, S state, InputHandler inputHandler)voidsendEvent(Event event, String[] transportSyncProperties)abstract voidsendEvent(Event event, String[] transportSyncProperties, S state, InputHandler inputHandler)voidsendEvents(Event[] events, String[] transportSyncProperties)voidsetInputHandler(InputHandler inputHandler)
-
-
-
Method Detail
-
init
public abstract StateFactory init(String siddhiAppName, SourceSyncCallback sourceSyncCallback, io.siddhi.query.api.definition.StreamDefinition streamDefinition, SiddhiAppContext siddhiAppContext)
-
sendEvent
public void sendEvent(Event event, String[] transportSyncProperties) throws InterruptedException
- Specified by:
sendEventin interfaceInputEventHandlerCallback- Throws:
InterruptedException
-
sendEvents
public void sendEvents(Event[] events, String[] transportSyncProperties) throws InterruptedException
- Specified by:
sendEventsin interfaceInputEventHandlerCallback- Throws:
InterruptedException
-
sendEvent
public abstract void sendEvent(Event event, String[] transportSyncProperties, S state, InputHandler inputHandler) throws InterruptedException
- Throws:
InterruptedException
-
sendEvent
public abstract void sendEvent(Event[] events, String[] transportSyncProperties, S state, InputHandler inputHandler) throws InterruptedException
- Throws:
InterruptedException
-
getInputHandler
public InputHandler getInputHandler()
-
setInputHandler
public void setInputHandler(InputHandler inputHandler)
-
getId
public String getId()
-
-