|
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<ManagerConnectionState>
org.asteriskjava.manager.ManagerConnectionState
public enum ManagerConnectionState
The lifecycle status of a ManagerConnection
.
Enum Constant Summary | |
---|---|
CONNECTED
The connection has been successfully established, login has been perfomed and the connection is ready to be used. |
|
CONNECTING
The connection is being made and login is performed. |
|
DISCONNECTED
The connection has been closed on user's request is not about to be reestablished. |
|
DISCONNECTING
The connection is about to be closed by user request. |
|
INITIAL
The initial state after the ManagerConnection object has been created but the connection has not yet been established. |
|
RECONNECTING
The connection has been disrupted and is about to be reestablished. |
Method Summary | |
---|---|
static ManagerConnectionState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static ManagerConnectionState[] |
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 ManagerConnectionState INITIAL
Changes to CONNECTING
when ManagerConnection.login()
is called.
public static final ManagerConnectionState CONNECTING
Changes to CONNECTED
when login has successfully completed or
DISCONNECTED
if login fails.
public static final ManagerConnectionState CONNECTED
This is the required state for sending actions to the Asterisk server.
Changes to RECONNECTING
when connection is lost or DISCONNECTING
when ManagerConnection.logoff()
is called.
public static final ManagerConnectionState RECONNECTING
Changes to CONNECTED
when connection is successfully reestablished or
DISCONNECTING
when ManagerConnection.logoff()
is called.
public static final ManagerConnectionState DISCONNECTING
Changes to DISCONNECTED
when connection has been closed.
public static final ManagerConnectionState DISCONNECTED
Can be changed to CONNECTING
by calling
ManagerConnection.login()
.
Method Detail |
---|
public static ManagerConnectionState[] values()
for (ManagerConnectionState c : ManagerConnectionState.values()) System.out.println(c);
public static ManagerConnectionState 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 null
|
Asterisk-Java | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |