org.mobicents.mscontrol
Enum MsConnectionEventID
java.lang.Object
java.lang.Enum<MsConnectionEventID>
org.mobicents.mscontrol.MsConnectionEventID
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<MsConnectionEventID>
public enum MsConnectionEventID
- extends java.lang.Enum<MsConnectionEventID>
Whenever the state of MsConnection changes MsConnectionEvent is fired and
change in state is represented by MsConnectionEventID *
CONNECTION_CREATED Fired as soon as creation of
MsConnection is successful. MsConnection is not holding any
resources yet
CONNECTION_HALF_OPEN Fired as soon as modification of
MsConnection is successful. At this stage the RTP Socket is open in Media
Server to receive stream but has no idea of Call-Agent SDP. Application may
call MsConnection.modify(localDesc, null) passing null for remote SDP
CONNECTION_OPEN Fired as soon as modification of
MsConnection is successful and the SDP passed by Call-Agent is successfully
passed to RTP Connection. At this stage there is flow of RTP packets from UA
to media server and vice-a-versa. Its possible that application may call
MsConnection.modify(localDesc, remoteDesc) passing the remoteDesc (remote
SDP)
CONNECTION_DISCONNECTED Fired as soon as MsConnection is
released
CONNECTION_FAILED Fired as soon as creation of
MsConnection fails for reason's specified in MsConnectionEventCause.
Immediately after CONNECTION_FAILED, CONNECTION_DISCONNECTED will be fired
giving chance to listener to do the clean-up
|
Method Summary |
static MsConnectionEventID |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static MsConnectionEventID[] |
values()
Returns an array containing the constants of this enum type, in
the order they're declared. |
| Methods inherited from class java.lang.Enum |
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
CONNECTION_CREATED
public static final MsConnectionEventID CONNECTION_CREATED
CONNECTION_HALF_OPEN
public static final MsConnectionEventID CONNECTION_HALF_OPEN
CONNECTION_OPEN
public static final MsConnectionEventID CONNECTION_OPEN
CONNECTION_FAILED
public static final MsConnectionEventID CONNECTION_FAILED
CONNECTION_DISCONNECTED
public static final MsConnectionEventID CONNECTION_DISCONNECTED
values
public static final MsConnectionEventID[] values()
- Returns an array containing the constants of this enum type, in
the order they're declared. This method may be used to iterate
over the constants as follows:
for(MsConnectionEventID c : MsConnectionEventID.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static MsConnectionEventID valueOf(java.lang.String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
Copyright © 2008. All Rights Reserved.