public static enum ClientRequest.Persistence extends java.lang.Enum<ClientRequest.Persistence>
Enum Constant and Description |
---|
CONNECTION
Default: persists until connection loss.
|
FOREVER
Same as reboot but saved to disk, persists forever.
|
REBOOT
Reports to client by name; persists over connection loss.
|
Modifier and Type | Method and Description |
---|---|
static ClientRequest.Persistence |
getByCode(short persistenceType)
Deprecated.
|
static ClientRequest.Persistence |
parseOrThrow(java.lang.String persistenceString,
java.lang.String identifier,
boolean global) |
static ClientRequest.Persistence |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ClientRequest.Persistence[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ClientRequest.Persistence CONNECTION
public static final ClientRequest.Persistence REBOOT
public static final ClientRequest.Persistence FOREVER
public static ClientRequest.Persistence[] values()
for (ClientRequest.Persistence c : ClientRequest.Persistence.values()) System.out.println(c);
public static ClientRequest.Persistence 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 nullpublic static ClientRequest.Persistence parseOrThrow(java.lang.String persistenceString, java.lang.String identifier, boolean global) throws MessageInvalidException
MessageInvalidException
@Deprecated public static ClientRequest.Persistence getByCode(short persistenceType)