public static enum CircuitBreaker.State extends java.lang.Enum<CircuitBreaker.State>
| Enum Constant and Description |
|---|
CLOSED
A CLOSED breaker is operating normally and allowing
requests through.
|
HALF_OPEN
A HALF_OPEN breaker has completed its wait interval
and will allow requests
|
OPEN
An OPEN breaker has tripped and will not allow requests
through.
|
| Modifier and Type | Method and Description |
|---|---|
static CircuitBreaker.State |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CircuitBreaker.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CircuitBreaker.State CLOSED
public static final CircuitBreaker.State OPEN
public static final CircuitBreaker.State HALF_OPEN
public static CircuitBreaker.State[] values()
for (CircuitBreaker.State c : CircuitBreaker.State.values()) System.out.println(c);
public static CircuitBreaker.State 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