org.mobicents.protocols.api
public interface AssociationListener
The listener interface for receiving the underlying socket status and
received payload from peer. The class that is interested in receiving data
must implement this interface, and the object created with that class is
registered with Association
| Modifier and Type | Method and Description |
|---|---|
void |
onCommunicationLost(Association association)
Invoked when underlying socket lost the connection with peer due to any
reason like network between peer's died etc.
|
void |
onCommunicationRestart(Association association)
Invoked when the connection with the peer re-started.
|
void |
onCommunicationShutdown(Association association)
Invoked when underlying socket is shutdown and connection is ended with
peer.
|
void |
onCommunicationUp(Association association)
Invoked when underlying socket is open and connection is established with
peer.
|
void |
onPayload(Association association,
PayloadData payloadData)
Invoked when the
PayloadData is received from peer |
void onCommunicationUp(Association association)
Associationassociation - void onCommunicationShutdown(Association association)
Associationassociation - void onCommunicationLost(Association association)
Association should try to re-establish the
connectionassociation - void onCommunicationRestart(Association association)
association - void onPayload(Association association, PayloadData payloadData)
PayloadData is received from peerassociation - payloadData - Copyright © 2012. All Rights Reserved.