public enum CircuitState extends Enum<CircuitState>
| Enum Constant and Description |
|---|
CLOSED
Initial state.
|
HALF_OPEN
Only one trial request is sent at a time until at least one request succeeds or fails.
|
OPEN
The circuit is tripped.
|
| 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 CLOSED
public static final CircuitState OPEN
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 nullCopyright © 2020 LeanCloud. All rights reserved.