public enum ManagerConnectionState extends Enum<ManagerConnectionState>
ManagerConnection.| Enum Constant and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
static ManagerConnectionState |
valueOf(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.
|
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().
public static ManagerConnectionState[] values()
for (ManagerConnectionState c : ManagerConnectionState.values()) System.out.println(c);
public static ManagerConnectionState valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2004–2020. All rights reserved.