public class EmailEventAdapter extends Object implements org.wso2.carbon.event.output.adapter.core.OutputEventAdapter
| Constructor and Description |
|---|
EmailEventAdapter(org.wso2.carbon.event.output.adapter.core.OutputEventAdapterConfiguration eventAdapterConfiguration,
Map<String,String> globalProperties) |
| Modifier and Type | Method and Description |
|---|---|
void |
connect()
Initialize the Email SMTP session and be ready to send emails.
|
void |
destroy() |
void |
disconnect() |
void |
init()
Initialize the thread pool to send emails.
|
boolean |
isPolled() |
void |
publish(Object message,
Map<String,String> dynamicProperties)
This will be invoked upon a successful trigger of
a data stream.
|
void |
testConnect() |
public void init()
throws org.wso2.carbon.event.output.adapter.core.exception.OutputEventAdapterException
init in interface org.wso2.carbon.event.output.adapter.core.OutputEventAdapterorg.wso2.carbon.event.output.adapter.core.exception.OutputEventAdapterException - on error.public void testConnect()
throws org.wso2.carbon.event.output.adapter.core.exception.TestConnectionNotSupportedException
testConnect in interface org.wso2.carbon.event.output.adapter.core.OutputEventAdapterorg.wso2.carbon.event.output.adapter.core.exception.TestConnectionNotSupportedExceptionpublic void connect()
throws org.wso2.carbon.event.output.adapter.core.exception.ConnectionUnavailableException
connect in interface org.wso2.carbon.event.output.adapter.core.OutputEventAdapterorg.wso2.carbon.event.output.adapter.core.exception.ConnectionUnavailableException - on error.public void publish(Object message, Map<String,String> dynamicProperties)
publish in interface org.wso2.carbon.event.output.adapter.core.OutputEventAdaptermessage - the event stream data.dynamicProperties - the dynamic attributes of the email.public void disconnect()
disconnect in interface org.wso2.carbon.event.output.adapter.core.OutputEventAdapterpublic void destroy()
destroy in interface org.wso2.carbon.event.output.adapter.core.OutputEventAdapterpublic boolean isPolled()
isPolled in interface org.wso2.carbon.event.output.adapter.core.OutputEventAdapterCopyright © 2015 WSO2. All rights reserved.