public static enum Server.State extends Enum<Server.State>
Enum Constant and Description |
---|
READ_ONLY
We can send reads to the server.
|
UNAVAILABLE
We cannot connect to the server.
|
UNKNOWN
A transient state for the server.
|
WRITABLE
We can send writes to the server.
|
Modifier and Type | Method and Description |
---|---|
static Server.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Server.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Server.State READ_ONLY
public static final Server.State UNAVAILABLE
public static final Server.State UNKNOWN
public static final Server.State WRITABLE
public static Server.State[] values()
for (Server.State c : Server.State.values()) System.out.println(c);
public static Server.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 © 2011–2014 Allanbank Consulting, Inc.. All rights reserved.