Package io.smallrye.faulttolerance.api
Enum CircuitBreakerState
- java.lang.Object
-
- java.lang.Enum<CircuitBreakerState>
-
- io.smallrye.faulttolerance.api.CircuitBreakerState
-
- All Implemented Interfaces:
Serializable,Comparable<CircuitBreakerState>
@Experimental("first attempt at providing a way to observe circuit breaker state") public enum CircuitBreakerState extends Enum<CircuitBreakerState>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CircuitBreakerStatevalueOf(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.
-
-
-
Enum Constant Detail
-
CLOSED
public static final CircuitBreakerState CLOSED
-
OPEN
public static final CircuitBreakerState OPEN
-
HALF_OPEN
public static final CircuitBreakerState HALF_OPEN
-
-
Method Detail
-
values
public static CircuitBreakerState[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CircuitBreakerState c : CircuitBreakerState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CircuitBreakerState valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-