org.mobicents.mscontrol
Enum MsSessionEventCause
java.lang.Object
java.lang.Enum<MsSessionEventCause>
org.mobicents.mscontrol.MsSessionEventCause
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<MsSessionEventCause>
public enum MsSessionEventCause
- extends java.lang.Enum<MsSessionEventCause>
This enum is for MsSession events firing when
STATE of MsSession changes
SESSION_CREATED indicates the STATE of MsSession is IDLE
and new instance of MsSession is created
CONNECTION_CREATED indicates the STATE of MsSession is
changed to ACTIVE because createNetworkConnection called
CONNECTION_DROPPED indicates the STATE of MsSession is
changed (state may change to INVALID if this was the only resource viz.,
Connection or Link hold by this session) because drop called
LINK_CREATED indicates the STATE of MsSession is changed
to ACTIVE because createLink called
LINK_DROPPED indicates the STATE of MsSession is changed
(state may change to INVALID if this was the only resource viz., Link or
Connection hold by this session) because dropLink called
- Author:
- amit.bhayani
|
Method Summary |
static MsSessionEventCause |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static MsSessionEventCause[] |
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 |
SESSION_CREATED
public static final MsSessionEventCause SESSION_CREATED
CONNECTION_CREATED
public static final MsSessionEventCause CONNECTION_CREATED
CONNECTION_DROPPED
public static final MsSessionEventCause CONNECTION_DROPPED
LINK_CREATED
public static final MsSessionEventCause LINK_CREATED
LINK_DROPPED
public static final MsSessionEventCause LINK_DROPPED
values
public static final MsSessionEventCause[] 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(MsSessionEventCause c : MsSessionEventCause.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static MsSessionEventCause 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.