Enum CircuitBreakerEvents.StateTransition
- java.lang.Object
-
- java.lang.Enum<CircuitBreakerEvents.StateTransition>
-
- io.smallrye.faulttolerance.core.circuit.breaker.CircuitBreakerEvents.StateTransition
-
- All Implemented Interfaces:
InvocationContextEvent,Serializable,Comparable<CircuitBreakerEvents.StateTransition>
- Enclosing class:
- CircuitBreakerEvents
public static enum CircuitBreakerEvents.StateTransition extends Enum<CircuitBreakerEvents.StateTransition> implements InvocationContextEvent
-
-
Enum Constant Summary
Enum Constants Enum Constant Description TO_CLOSEDTO_HALF_OPENTO_OPEN
-
Field Summary
Fields Modifier and Type Field Description CircuitBreakerStatetargetState
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CircuitBreakerEvents.StateTransitionvalueOf(String name)Returns the enum constant of this type with the specified name.static CircuitBreakerEvents.StateTransition[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TO_CLOSED
public static final CircuitBreakerEvents.StateTransition TO_CLOSED
-
TO_OPEN
public static final CircuitBreakerEvents.StateTransition TO_OPEN
-
TO_HALF_OPEN
public static final CircuitBreakerEvents.StateTransition TO_HALF_OPEN
-
-
Field Detail
-
targetState
public final CircuitBreakerState targetState
-
-
Method Detail
-
values
public static CircuitBreakerEvents.StateTransition[] 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 (CircuitBreakerEvents.StateTransition c : CircuitBreakerEvents.StateTransition.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CircuitBreakerEvents.StateTransition 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
-
-