public static enum ConnectionWithStatus.Status extends Enum<ConnectionWithStatus.Status>
Enum Constant and Description |
---|
Closed
The connection channel is closed or being closed.
|
Connecting
we are establishing a active connection with target host.
|
Ready
We have a alive connection channel, which can be used to transfer data.
|
Modifier and Type | Method and Description |
---|---|
static ConnectionWithStatus.Status |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConnectionWithStatus.Status[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConnectionWithStatus.Status Connecting
public static final ConnectionWithStatus.Status Ready
public static final ConnectionWithStatus.Status Closed
public static ConnectionWithStatus.Status[] values()
for (ConnectionWithStatus.Status c : ConnectionWithStatus.Status.values()) System.out.println(c);
public static ConnectionWithStatus.Status 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 © 2019 The Apache Software Foundation. All Rights Reserved.