public enum LivenessState extends Enum<LivenessState> implements AvailabilityState
An application is considered live when it's running with a correct internal state. "Liveness" failure means that the internal state of the application is broken and we cannot recover from it. As a result, the platform should restart the application.
Enum Constant and Description |
---|
BROKEN
The application is running but its internal state is broken.
|
CORRECT
The application is running and its internal state is correct.
|
Modifier and Type | Method and Description |
---|---|
static LivenessState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LivenessState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LivenessState CORRECT
public static final LivenessState BROKEN
public static LivenessState[] values()
for (LivenessState c : LivenessState.values()) System.out.println(c);
public static LivenessState 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