public enum ConnectState extends Enum<ConnectState>
| Enum Constant and Description |
|---|
AUTHORIZED |
AUTHORIZING |
CONNECTED |
CONNECTING |
DISCONNECTED |
INIT |
NORMAL |
PREPARE_STOP |
STOPPING |
| Modifier and Type | Method and Description |
|---|---|
static ConnectState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConnectState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConnectState INIT
public static final ConnectState CONNECTING
public static final ConnectState CONNECTED
public static final ConnectState AUTHORIZING
public static final ConnectState AUTHORIZED
public static final ConnectState NORMAL
public static final ConnectState PREPARE_STOP
public static final ConnectState STOPPING
public static final ConnectState DISCONNECTED
public static ConnectState[] values()
for (ConnectState c : ConnectState.values()) System.out.println(c);
public static ConnectState 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 © 2026. All rights reserved.