public interface ClientConnector
| Modifier and Type | Method and Description |
|---|---|
String |
getProtocol()
Transport protocol associated with this client connector instance.
|
boolean |
send(CarbonMessage msg,
CarbonCallback callback)
Message sending logic to send message to a backend endpoint.
|
boolean |
send(CarbonMessage msg,
CarbonCallback callback,
Map<String,String> parameters)
Message sending logic to send message to a backend endpoint.
|
void |
setMessageProcessor(CarbonMessageProcessor messageProcessor)
Set message processor reference to the ClientConnector.
|
boolean send(CarbonMessage msg, CarbonCallback callback) throws ClientConnectorException
msg - the carbon message used with sending the a message to backend.callback - carbon callback used with responding any error.ClientConnectorException - on error while trying to send message to backend.boolean send(CarbonMessage msg, CarbonCallback callback, Map<String,String> parameters) throws ClientConnectorException
msg - the carbon message used with sending the a message to backend.callback - carbon callback used with responding any error.parameters - data passed from application level to be used with creating the message.ClientConnectorException - on error while trying to send message to backend.String getProtocol()
void setMessageProcessor(CarbonMessageProcessor messageProcessor)
messageProcessor - CarbonMessageProcessorCopyright © 2017 WSO2. All rights reserved.