Uses of Enum Class
org.apache.commons.lang3.concurrent.AbstractCircuitBreaker.State
Packages that use AbstractCircuitBreaker.State
Package
Description
Provides support classes for multi-threaded programming.
-
Uses of AbstractCircuitBreaker.State in org.apache.commons.lang3.concurrent
Fields in org.apache.commons.lang3.concurrent with type parameters of type AbstractCircuitBreaker.StateModifier and TypeFieldDescriptionprotected final AtomicReference<AbstractCircuitBreaker.State>
AbstractCircuitBreaker.state
The current state of this circuit breaker.private static final Map<AbstractCircuitBreaker.State,
EventCountCircuitBreaker.StateStrategy> EventCountCircuitBreaker.STRATEGY_MAP
A map for accessing the strategy objects for the different states.Methods in org.apache.commons.lang3.concurrent that return AbstractCircuitBreaker.StateModifier and TypeMethodDescriptionabstract AbstractCircuitBreaker.State
AbstractCircuitBreaker.State.oppositeState()
Returns the opposite state to the represented state.static AbstractCircuitBreaker.State
Returns the enum constant of this class with the specified name.static AbstractCircuitBreaker.State[]
AbstractCircuitBreaker.State.values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods in org.apache.commons.lang3.concurrent that return types with arguments of type AbstractCircuitBreaker.StateModifier and TypeMethodDescriptionprivate static Map<AbstractCircuitBreaker.State,
EventCountCircuitBreaker.StateStrategy> EventCountCircuitBreaker.createStrategyMap()
Creates the map with strategy objects.Methods in org.apache.commons.lang3.concurrent with parameters of type AbstractCircuitBreaker.StateModifier and TypeMethodDescriptionprotected void
AbstractCircuitBreaker.changeState
(AbstractCircuitBreaker.State newState) Changes the internal state of this circuit breaker.private void
EventCountCircuitBreaker.changeStateAndStartNewCheckInterval
(AbstractCircuitBreaker.State newState) Changes the state of this circuit breaker and also initializes a newCheckIntervalData
object.protected static boolean
AbstractCircuitBreaker.isOpen
(AbstractCircuitBreaker.State state) Converts the given state value to a boolean open property.EventCountCircuitBreaker.nextCheckIntervalData
(int increment, EventCountCircuitBreaker.CheckIntervalData currentData, AbstractCircuitBreaker.State currentState, long time) Calculates the nextCheckIntervalData
object based on the current data and the current state.private static EventCountCircuitBreaker.StateStrategy
EventCountCircuitBreaker.stateStrategy
(AbstractCircuitBreaker.State state) Returns theStateStrategy
object responsible for the given state.