public enum CircuitState extends Enum<CircuitState>
| Enum Constant and Description | 
|---|
| CLOSEDThe circuit is closed and downstream logic should proceed as normal. | 
| HALF_OPENThe circuit has just closed to allow a single downstream call to check if it is backup. | 
| OPENThe circuit is open and downstream logic should not be invoked. | 
| Modifier and Type | Method and Description | 
|---|---|
| static CircuitState | valueOf(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(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