public static enum Connector.State extends Enum<Connector.State>
Enum Constant and Description |
---|
connected
Connection is established.
|
connecting
Connector started establishing connection.
|
disconnected
Connector is disconnected.
|
disconnecting
Connector is closing connection and stopping workers.
|
Modifier and Type | Method and Description |
---|---|
static Connector.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Connector.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Connector.State connected
public static final Connector.State connecting
public static final Connector.State disconnected
public static final Connector.State disconnecting
public static Connector.State[] values()
for (Connector.State c : Connector.State.values()) System.out.println(c);
public static Connector.State 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 © 2006–2023 Tigase. All rights reserved.