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.
|
DISABLED
A DISABLED breaker is not operating (no state transition, no events)
and allowing all requests through.
|
FORCED_OPEN
A FORCED_OPEN breaker is not operating (no state transition, no events)
and not allowing any 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 | Field and Description |
---|---|
boolean |
allowPublish |
Modifier and Type | Method and Description |
---|---|
int |
getOrder() |
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 DISABLED
public static final CircuitBreaker.State CLOSED
public static final CircuitBreaker.State OPEN
public static final CircuitBreaker.State FORCED_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 nullpublic int getOrder()