public class EmailSource
extends io.siddhi.core.stream.input.source.Source
| Constructor and Description |
|---|
EmailSource() |
| Modifier and Type | Method and Description |
|---|---|
void |
connect(io.siddhi.core.stream.input.source.Source.ConnectionCallback connectionCallback,
io.siddhi.core.util.snapshot.state.State state)
Intialy Called to connect to the end point for start retriving the messages asynchronisly .
|
void |
destroy()
Called at the end to clean all the resources consumed by the
Source |
void |
disconnect()
This method can be called when it is needed to disconnect from the end point.
|
protected io.siddhi.core.stream.ServiceDeploymentInfo |
exposeServiceDeploymentInfo() |
Class[] |
getOutputEventClasses()
Returns the list of classes which this source can output.
|
io.siddhi.core.util.snapshot.state.StateFactory |
init(io.siddhi.core.stream.input.source.SourceEventListener sourceEventListener,
io.siddhi.core.util.transport.OptionHolder optionHolder,
String[] requiredProperties,
io.siddhi.core.util.config.ConfigReader configReader,
io.siddhi.core.config.SiddhiAppContext siddhiAppContext)
The initialization method for
Source, which will be called before other methods and validate
the all configuration and getting the intial values. |
void |
pause()
Called to pause event consumption
|
void |
resume()
Called to resume event consumption
|
public io.siddhi.core.util.snapshot.state.StateFactory init(io.siddhi.core.stream.input.source.SourceEventListener sourceEventListener,
io.siddhi.core.util.transport.OptionHolder optionHolder,
String[] requiredProperties,
io.siddhi.core.util.config.ConfigReader configReader,
io.siddhi.core.config.SiddhiAppContext siddhiAppContext)
Source, which will be called before other methods and validate
the all configuration and getting the intial values.init in class io.siddhi.core.stream.input.source.SourcesourceEventListener - After receiving events, the source should trigger onEvent() of this listener.
Listener will then pass on the events to the appropriate mappers for processing .optionHolder - Option holder containing static configuration related to the SourceconfigReader - to read the Source related system configuration.siddhiAppContext - the context of the SiddhiApp used to get siddhi
related utilty functions.public void connect(io.siddhi.core.stream.input.source.Source.ConnectionCallback connectionCallback,
io.siddhi.core.util.snapshot.state.State state)
throws io.siddhi.core.exception.ConnectionUnavailableException
connect in class io.siddhi.core.stream.input.source.SourceconnectionCallback - Callback to pass the ConnectionUnavailableException in case of connection failure after
initial successful connection(can be used when events are receving asynchronasily)io.siddhi.core.exception.ConnectionUnavailableException - if it cannot connect to the source backend immediately.protected io.siddhi.core.stream.ServiceDeploymentInfo exposeServiceDeploymentInfo()
exposeServiceDeploymentInfo in class io.siddhi.core.stream.input.source.Sourcepublic void disconnect()
disconnect in class io.siddhi.core.stream.input.source.Sourcepublic void destroy()
Sourcedestroy in class io.siddhi.core.stream.input.source.Sourcepublic void pause()
pause in class io.siddhi.core.stream.input.source.Sourcepublic void resume()
resume in class io.siddhi.core.stream.input.source.Sourcepublic Class[] getOutputEventClasses()
getOutputEventClasses in class io.siddhi.core.stream.input.source.SourceCopyright © 2022 WSO2. All rights reserved.