public enum State extends Enum<State>
Enum Constant and Description |
---|
Disconnected |
Normal |
Recovery |
Synchronize |
Modifier and Type | Method and Description |
---|---|
StateHandler |
getHandler() |
static boolean |
isRecovered(State state) |
static boolean |
isRecovery(State state) |
static State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final State Disconnected
public static final State Normal
public static final State Recovery
public static final State Synchronize
public static State[] values()
for (State c : State.values()) System.out.println(c);
public static 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 nullpublic StateHandler getHandler()
public static boolean isRecovery(State state)
public static boolean isRecovered(State state)
Copyright © 2000-2017 EPAM Systems. All Rights Reserved.