@Experimental(value="first attempt at providing a way to observe circuit breaker state") public enum CircuitBreakerState extends Enum<CircuitBreakerState>
| 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 CLOSED
public static final CircuitBreakerState OPEN
public static final CircuitBreakerState HALF_OPEN
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 © 2018–2020. All rights reserved.