Source.ConnectionCallback| Constructor and Description |
|---|
InMemorySource() |
| Modifier and Type | Method and Description |
|---|---|
void |
connect(Source.ConnectionCallback connectionCallback,
State state)
Called to connect to the source backend for receiving events
|
void |
destroy()
Called at the end to clean all the resources consumed
|
void |
disconnect()
Called to disconnect from the source backend, or when ConnectionUnavailableException is thrown
|
protected ServiceDeploymentInfo |
exposeServiceDeploymentInfo()
Give information to the deployment about the service exposed by the sink.
|
Class[] |
getOutputEventClasses()
Get produced event class types
|
StateFactory<State> |
init(SourceEventListener sourceEventListener,
OptionHolder optionHolder,
String[] requestedTransportPropertyNames,
ConfigReader configReader,
SiddhiAppContext siddhiAppContext)
To initialize the source.
|
void |
pause()
Called to pause event consumption
|
void |
resume()
Called to resume event consumption
|
connectWithRetry, getMapper, getServiceDeploymentInfo, getStreamDefinition, getType, init, shutdownprotected ServiceDeploymentInfo exposeServiceDeploymentInfo()
SourceexposeServiceDeploymentInfo in class Sourcepublic StateFactory<State> init(SourceEventListener sourceEventListener, OptionHolder optionHolder, String[] requestedTransportPropertyNames, ConfigReader configReader, SiddhiAppContext siddhiAppContext)
Sourceinit in class SourcesourceEventListener - The listener to pass the events for processing which are consumed
by the sourceoptionHolder - Contains static options of the sourcerequestedTransportPropertyNames - Requested transport properties that should be passed to
SourceEventListenerconfigReader - System configuration reader for sourcesiddhiAppContext - Siddhi application contextpublic Class[] getOutputEventClasses()
SourcegetOutputEventClasses in class Sourcepublic void connect(Source.ConnectionCallback connectionCallback, State state) throws ConnectionUnavailableException
Sourceconnect in class SourceconnectionCallback - Callback to pass the ConnectionUnavailableException for connection failure after
initial successful connectionstate - current state of the sourceConnectionUnavailableException - if it cannot connect to the source backendpublic void disconnect()
Sourcedisconnect in class Sourcepublic void destroy()
Sourcepublic void pause()
SourceCopyright © 2019. All rights reserved.