public abstract class SourceHandler extends Object implements InputEventHandlerCallback, 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() |
InputHandler |
getInputHandler() |
abstract void |
init(String elementId,
org.wso2.siddhi.query.api.definition.StreamDefinition streamDefinition) |
void |
sendEvent(Event event) |
abstract void |
sendEvent(Event[] events,
InputHandler inputHandler) |
abstract void |
sendEvent(Event event,
InputHandler inputHandler) |
void |
sendEvents(Event[] events) |
void |
setInputHandler(InputHandler inputHandler) |
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 sendEvent(Event event) throws InterruptedException
sendEvent in interface InputEventHandlerCallbackInterruptedExceptionpublic void sendEvents(Event[] events) throws InterruptedException
sendEvents in interface InputEventHandlerCallbackInterruptedExceptionpublic abstract void sendEvent(Event event, InputHandler inputHandler) throws InterruptedException
InterruptedExceptionpublic abstract void sendEvent(Event[] events, InputHandler inputHandler) throws InterruptedException
InterruptedExceptionpublic String getElementId()
getElementId in interface Snapshotablepublic void setInputHandler(InputHandler inputHandler)
public InputHandler getInputHandler()
Copyright © 2017 WSO2. All rights reserved.