|
Asterisk-Java | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<QueueMemberState>
org.asteriskjava.live.QueueMemberState
public enum QueueMemberState
Represents the status of a Queue memeber.
Valid status codes are:
QueueMemberEvent
Enum Constant Summary | |
---|---|
DEVICE_BUSY
Busy means, phone is in action, eg. |
|
DEVICE_INUSE
|
|
DEVICE_INVALID
|
|
DEVICE_NOT_INUSE
Queue member is available, eg. |
|
DEVICE_UNAVAILABLE
Device is not availible for call, eg. |
|
DEVICE_UNKNOWN
|
Method Summary | |
---|---|
int |
getStatus()
Returns the numerical status code. |
static QueueMemberState |
valueOf(java.lang.Integer status)
Returns value specified by int. |
static QueueMemberState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static QueueMemberState[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final QueueMemberState DEVICE_UNKNOWN
public static final QueueMemberState DEVICE_NOT_INUSE
public static final QueueMemberState DEVICE_INUSE
public static final QueueMemberState DEVICE_BUSY
public static final QueueMemberState DEVICE_INVALID
public static final QueueMemberState DEVICE_UNAVAILABLE
Method Detail |
---|
public static QueueMemberState[] values()
for (QueueMemberState c : QueueMemberState.values()) System.out.println(c);
public static QueueMemberState valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic int getStatus()
QueueMemberEvent.getStatus()
public static QueueMemberState valueOf(java.lang.Integer status)
QueueMemberEvent.getStatus()
.
status
- integer representation of the status.
null
if none matches.
|
Asterisk-Java | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |