public enum ReadinessState extends java.lang.Enum<ReadinessState> implements AvailabilityState
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 |
---|
ACCEPTING_TRAFFIC
The application is ready to receive traffic.
|
REFUSING_TRAFFIC
The application is not willing to receive traffic.
|
Modifier and Type | Method and Description |
---|---|
static ReadinessState |
valueOf(java.lang.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 ACCEPTING_TRAFFIC
public static final ReadinessState REFUSING_TRAFFIC
public static ReadinessState[] values()
for (ReadinessState c : ReadinessState.values()) System.out.println(c);
public static ReadinessState 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 null