public enum CircuitState extends java.lang.Enum<CircuitState>
Enum Constant and Description |
---|
CLOSED
The circuit is closed and downstream logic should proceed as normal.
|
HALF_OPEN
The circuit has just closed to allow a single downstream call to check if it is backup.
|
OPEN
The circuit is open and downstream logic should not be invoked.
|
Modifier and Type | Method and Description |
---|---|
static CircuitState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CircuitState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CircuitState OPEN
public static final CircuitState CLOSED
public static final CircuitState HALF_OPEN
public static CircuitState[] values()
for (CircuitState c : CircuitState.values()) System.out.println(c);
public static CircuitState 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