Enum Class CircuitBreaker.StateTransition
java.lang.Object
java.lang.Enum<CircuitBreaker.StateTransition>
io.github.resilience4j.circuitbreaker.CircuitBreaker.StateTransition
- All Implemented Interfaces:
Serializable, Comparable<CircuitBreaker.StateTransition>, Constable
- Enclosing interface:
CircuitBreaker
State transitions of the CircuitBreaker state machine.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CircuitBreaker.Stateprivate static final Map<Map.Entry<CircuitBreaker.State, CircuitBreaker.State>, CircuitBreaker.StateTransition> private final CircuitBreaker.State -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateStateTransition(CircuitBreaker.State fromState, CircuitBreaker.State toState) -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisInternalTransition(CircuitBreaker.StateTransition transition) toString()transitionBetween(String name, CircuitBreaker.State fromState, CircuitBreaker.State toState) Returns the enum constant of this class with the specified name.static CircuitBreaker.StateTransition[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CLOSED_TO_CLOSED
-
CLOSED_TO_OPEN
-
CLOSED_TO_DISABLED
-
CLOSED_TO_METRICS_ONLY
-
CLOSED_TO_FORCED_OPEN
-
HALF_OPEN_TO_HALF_OPEN
-
HALF_OPEN_TO_CLOSED
-
HALF_OPEN_TO_OPEN
-
HALF_OPEN_TO_DISABLED
-
HALF_OPEN_TO_METRICS_ONLY
-
HALF_OPEN_TO_FORCED_OPEN
-
OPEN_TO_OPEN
-
OPEN_TO_CLOSED
-
OPEN_TO_HALF_OPEN
-
OPEN_TO_DISABLED
-
OPEN_TO_METRICS_ONLY
-
OPEN_TO_FORCED_OPEN
-
FORCED_OPEN_TO_FORCED_OPEN
-
FORCED_OPEN_TO_CLOSED
-
FORCED_OPEN_TO_OPEN
-
FORCED_OPEN_TO_DISABLED
-
FORCED_OPEN_TO_METRICS_ONLY
-
FORCED_OPEN_TO_HALF_OPEN
-
DISABLED_TO_DISABLED
-
DISABLED_TO_CLOSED
-
DISABLED_TO_OPEN
-
DISABLED_TO_FORCED_OPEN
-
DISABLED_TO_HALF_OPEN
-
DISABLED_TO_METRICS_ONLY
-
METRICS_ONLY_TO_METRICS_ONLY
-
METRICS_ONLY_TO_CLOSED
-
METRICS_ONLY_TO_FORCED_OPEN
-
METRICS_ONLY_TO_DISABLED
-
-
Field Details
-
STATE_TRANSITION_MAP
private static final Map<Map.Entry<CircuitBreaker.State, CircuitBreaker.State>, CircuitBreaker.StateTransition> STATE_TRANSITION_MAP -
fromState
-
toState
-
-
Constructor Details
-
StateTransition
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
transitionBetween
public static CircuitBreaker.StateTransition transitionBetween(String name, CircuitBreaker.State fromState, CircuitBreaker.State toState) -
getFromState
-
getToState
-
isInternalTransition
-
toString
- Overrides:
toStringin classEnum<CircuitBreaker.StateTransition>
-