public static enum NioServer.State extends java.lang.Enum<NioServer.State>
One of four possible states for the server to be in:
Enum Constant and Description |
---|
STARTED |
STARTING |
STOPPED |
STOPPING |
Modifier and Type | Method and Description |
---|---|
static NioServer.State |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NioServer.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NioServer.State STARTING
public static final NioServer.State STARTED
public static final NioServer.State STOPPING
public static final NioServer.State STOPPED
public static NioServer.State[] values()
for (NioServer.State c : NioServer.State.values()) System.out.println(c);
public static NioServer.State valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null