public static enum CircuitBreaker.State extends Enum<CircuitBreaker.State>
Enum Constant and Description |
---|
CLOSED
The circuit is closed and fully functional, allowing executions to occur.
|
HALF_OPEN
The circuit is temporarily allowing executions to occur.
|
OPEN
The circuit is opened and not allowing executions to occur.
|
Modifier and Type | Method and Description |
---|---|
static CircuitBreaker.State |
valueOf(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(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 © 2022. All rights reserved.