org.mobicents.mscontrol
Interface MsConnectionListener

All Superinterfaces:
java.io.Serializable

public interface MsConnectionListener
extends java.io.Serializable

The class interested in receiving the MsConnectionEvent should implement this interface. When ever there is change in state of MsConnection, instance of MsConnectionEvent is fired.

Author:
Oleg Kulikov, amit.bhayani

Method Summary
 void connectionCreated(MsConnectionEvent event)
          This method is called when the MsConnectionEventID.CONNECTION_CREATED is fired.
 void connectionDisconnected(MsConnectionEvent event)
          This method is called when MsConnectionEventID.CONNECTION_DISCONNECTED is fired.
 void connectionFailed(MsConnectionEvent event)
          This method is called when the MsConnectionEventID.CONNECTION_FAILED is fired.
 void connectionHalfOpen(MsConnectionEvent event)
          This method is called when MsConnectionEventID.CONNECTION_HALF_OPEN is fired.
 void connectionOpen(MsConnectionEvent event)
          This method is called when MsConnectionEventID.CONNECTION_OPEN is fired.
 

Method Detail

connectionCreated

void connectionCreated(MsConnectionEvent event)
This method is called when the MsConnectionEventID.CONNECTION_CREATED is fired. At this stage the state of MsConnection is IDLE. Look at CONNECTION_CREATED of MsConnectionEventID

Parameters:
event -

connectionFailed

void connectionFailed(MsConnectionEvent event)
This method is called when the MsConnectionEventID.CONNECTION_FAILED is fired. At this stage the state of MsConnection is FAILEDLook at CONNECTION_FAILED of MsConnectionEventID

Parameters:
event -

connectionHalfOpen

void connectionHalfOpen(MsConnectionEvent event)
This method is called when MsConnectionEventID.CONNECTION_HALF_OPEN is fired. At this stage the state of MsConnection is HALF_OPENLook at CONNECTION_HALF_OPEN of MsConnectionEventID

Parameters:
event -

connectionOpen

void connectionOpen(MsConnectionEvent event)
This method is called when MsConnectionEventID.CONNECTION_OPEN is fired. At this stage the state of MsConnection is OPENLook at CONNECTION_OPEN of MsConnectionEventID

Parameters:
event -

connectionDisconnected

void connectionDisconnected(MsConnectionEvent event)
This method is called when MsConnectionEventID.CONNECTION_DISCONNECTED is fired. At this stage the state of MsConnection is CLOSED. Look at CONNECTION_DISCONNECTED of MsConnectionEventID

Parameters:
event -


Copyright © 2008. All Rights Reserved.