public enum CircuitBreakerState extends Enum<CircuitBreakerState>
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.
|
UNKNOWN
The underlying implementation has an unmapped state
|
Modifier and Type | Method and Description |
---|---|
static CircuitBreakerState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CircuitBreakerState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CircuitBreakerState DISABLED
public static final CircuitBreakerState CLOSED
public static final CircuitBreakerState OPEN
public static final CircuitBreakerState FORCED_OPEN
public static final CircuitBreakerState HALF_OPEN
public static final CircuitBreakerState UNKNOWN
public static CircuitBreakerState[] values()
for (CircuitBreakerState c : CircuitBreakerState.values()) System.out.println(c);
public static CircuitBreakerState 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 © 2016–2024. All rights reserved.