public interface IConnectionListener
An object that registers to be notified of events generated by a
IConnection object.
The ConnectionListener interface is implemented by a
PCB component.
| Modifier and Type | Method and Description |
|---|---|
void |
connectionClosed(String connKey,
List notSended)
Notifies that connection is closed
|
void |
connectionOpened(String connKey)
Notifies that connection is created
|
void |
internalError(String connKey,
IMessage message,
TransportException cause)
Notifies that connection is generated excpetion
|
void |
messageReceived(String connKey,
IMessage message)
Notifies that connection is received incoming message
|
void connectionOpened(String connKey)
connKey - identifier of created connectionvoid connectionClosed(String connKey, List notSended)
connKey - identifier of closed connectionnotSended - array of not sended messagesvoid messageReceived(String connKey, IMessage message)
connKey - identifier of connectionmessage - received incoming messagevoid internalError(String connKey, IMessage message, TransportException cause)
connKey - identifier of connectionmessage - the message from that failedcause - generated exceptionsCopyright © 2016. All Rights Reserved.