|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ExternalTransport
Describes API of external transport.
Method Summary | |
---|---|
void |
connect(Endpoint endpoint)
Connects to a specified destination asynchronously. |
void |
disconnect()
Disconnects from destination. |
void |
sendMessage(Message message)
Sends message to the destination. |
void |
setTransportListener(ExternalTransportListener listener)
Set external transport listener. |
Method Detail |
---|
void connect(Endpoint endpoint)
ExternalTransportListener.onConnected()
otherwise it must notify ExternalTransportListener.onDisconnected(Throwable)
endpoint
- Endpoint which describes destination address and contains configuration.
RecursiveCallException
- if this external transport notifies a listener
about any events inside this method call.void disconnect()
ExternalTransportListener.onDisconnected(Throwable)
RecursiveCallException
- if external transport notifies a listener
about any events inside this method call.void sendMessage(Message message)
message
- which has to be sent.
RecursiveCallException
- if this external transport notifies a listener
about any events inside this method call.void setTransportListener(ExternalTransportListener listener)
listener
- that will handle the transport events.
RecursiveCallException
- if this external transport notifies a listener
about any events inside this method call.
|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |