|
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 ExternalTransportListener
API for external transport events handling.
All events have to be notified within some transport notification thread.
Any events can't be notified by transport inside of calls of
ExternalTransport.connect(Endpoint)
,
ExternalTransport.disconnect()
or
ExternalTransport.sendMessage(Message)
or RecursiveCallException
will be thrown.
Method Summary | |
---|---|
void |
onConnected()
The method is called (using channel's invoker) as soon as the external transport connected to the destination. |
void |
onDisconnected(java.lang.Throwable cause)
The method is called (using channel's invoker) as soon as the external transport disconnected from the destination. |
void |
onMessageReceived(Message message)
The method is called (using channel's invoker) for each message received by the external transport. |
Method Detail |
---|
void onConnected()
RecursiveCallException
- when it is notified inside calls of the methods
ExternalTransport.connect(Endpoint)
,
ExternalTransport.disconnect()
,
ExternalTransport.sendMessage(Message)
or ExternalTransport.setTransportListener(ExternalTransportListener)
void onDisconnected(java.lang.Throwable cause)
cause
- of disconnection. It is null if the disconnection happened due to call
of ExternalTransport.disconnect()
.
RecursiveCallException
- when it is notified inside calls of the methods
ExternalTransport.connect(Endpoint)
,
ExternalTransport.disconnect()
,
ExternalTransport.sendMessage(Message)
or ExternalTransport.setTransportListener(ExternalTransportListener)
void onMessageReceived(Message message)
message
- that is received by the external transport.
RecursiveCallException
- when it is notified inside calls of the methods
ExternalTransport.connect(Endpoint)
,
ExternalTransport.disconnect()
,
ExternalTransport.sendMessage(Message)
or ExternalTransport.setTransportListener(ExternalTransportListener)
|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |