org.mobicents.mscontrol
Enum MsConnectionState
java.lang.Object
java.lang.Enum<MsConnectionState>
org.mobicents.mscontrol.MsConnectionState
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<MsConnectionState>
public enum MsConnectionState
- extends java.lang.Enum<MsConnectionState>
MsConnectionState represents the state of MsConnection.
- IDLE : When the MsConnection is created for first time state is
IDLE
- HALF_OPEN : When the MsConnection.modify() is called but without remote
SDP and creation of Connection is successful the state is
HALF_OPEN
- OPEN : When the MsConnection.modify() is called with remote SDP and the
Connection is successfully modified the state is
OPEN
- FAILED : When the creation or modification of MsConnection fails for any
reason the state is
FAILED
- CLOSED : When the MsConnection.release() is called state is
CLOSED
- Author:
- amit bhayani
|
Method Summary |
static MsConnectionState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static MsConnectionState[] |
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 |
IDLE
public static final MsConnectionState IDLE
HALF_OPEN
public static final MsConnectionState HALF_OPEN
OPEN
public static final MsConnectionState OPEN
FAILED
public static final MsConnectionState FAILED
CLOSED
public static final MsConnectionState CLOSED
values
public static final MsConnectionState[] 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(MsConnectionState c : MsConnectionState.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static MsConnectionState 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.