public interface ExternalTransportListener
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.
Modifier and Type | Method | Description |
---|---|---|
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.
|
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)
Send comments on this topicTechpubs.webadmin@genesys.com.
Document version: 9.0.006.00
Copyright © 2006–2019 Genesys Telecommunications Laboratories, Inc. All rights reserved.