public abstract class SourceHandler extends Object implements InputEventHandler, Snapshotable
InputHandler.
It will do optional processing to the events before sending the events to the input handler| Constructor and Description |
|---|
SourceHandler() |
| Modifier and Type | Method and Description |
|---|---|
String |
getElementId() |
abstract void |
handle(Event[] events,
InputEventHandler inputEventHandler) |
abstract void |
handle(Event event,
InputEventHandler inputEventHandler) |
abstract void |
init(String elementId,
org.wso2.siddhi.query.api.definition.StreamDefinition streamDefinition) |
void |
sendEvent(Event event) |
void |
sendEvents(Event[] events) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcurrentState, restoreStatepublic abstract void init(String elementId, org.wso2.siddhi.query.api.definition.StreamDefinition streamDefinition)
public void sendEvents(Event[] events) throws InterruptedException
sendEvents in interface InputEventHandlerInterruptedExceptionpublic void sendEvent(Event event) throws InterruptedException
sendEvent in interface InputEventHandlerInterruptedExceptionpublic abstract void handle(Event event, InputEventHandler inputEventHandler) throws InterruptedException
InterruptedExceptionpublic abstract void handle(Event[] events, InputEventHandler inputEventHandler) throws InterruptedException
InterruptedExceptionpublic String getElementId()
getElementId in interface SnapshotableCopyright © 2017 WSO2. All rights reserved.