org.mobicents.mscontrol
Enum MsLinkMode
java.lang.Object
java.lang.Enum<MsLinkMode>
org.mobicents.mscontrol.MsLinkMode
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<MsLinkMode>
public enum MsLinkMode
- extends java.lang.Enum<MsLinkMode>
MsLink are either one way represented as HALF_DUPLEX
or two way represented as FULL_DUPLEX
In HALF_DUPLEX, the stream only flows from
endpointA to endpointB in given example but not
in reverse direction. Example
MsLink msLink;
...
msLink.join(enpointA, enpointB);
- Author:
- Oleg Kulikov
|
Method Summary |
static MsLinkMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static MsLinkMode[] |
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 |
HALF_DUPLEX
public static final MsLinkMode HALF_DUPLEX
FULL_DUPLEX
public static final MsLinkMode FULL_DUPLEX
values
public static final MsLinkMode[] 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(MsLinkMode c : MsLinkMode.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static MsLinkMode 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 © 2009. All Rights Reserved.