public static enum NioConnection.NioConnectionStatus extends Enum<NioConnection.NioConnectionStatus>
Enum Constant and Description |
---|
ACCEPT
An accept request has been made.
|
ACTIVE
The connection is active.
|
CLOSED
The connection is closed.
|
CLOSING
The connection is closing.
|
CONNECT
A connect request has been made.
|
VIRGIN
The connection is virgin.
|
Modifier and Type | Method and Description |
---|---|
static NioConnection.NioConnectionStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NioConnection.NioConnectionStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NioConnection.NioConnectionStatus VIRGIN
public static final NioConnection.NioConnectionStatus CONNECT
public static final NioConnection.NioConnectionStatus ACCEPT
public static final NioConnection.NioConnectionStatus ACTIVE
public static final NioConnection.NioConnectionStatus CLOSING
public static final NioConnection.NioConnectionStatus CLOSED
public static NioConnection.NioConnectionStatus[] values()
for (NioConnection.NioConnectionStatus c : NioConnection.NioConnectionStatus.values()) System.out.println(c);
public static NioConnection.NioConnectionStatus 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 null