public enum ReadinessState extends Enum<ReadinessState>
An application is considered ready when it's live
and willing to
accept traffic. "Readiness" failure means that the application is not able to accept
traffic and that the infrastructure should stop routing requests to it.
Enum Constant and Description |
---|
READY
The application is ready to receive traffic.
|
UNREADY
The application is not willing to receive traffic.
|
Modifier and Type | Method and Description |
---|---|
static ReadinessState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ReadinessState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReadinessState UNREADY
public static final ReadinessState READY
public static ReadinessState[] values()
for (ReadinessState c : ReadinessState.values()) System.out.println(c);
public static ReadinessState 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