Uses of Class
org.apache.commons.lang3.concurrent.AbstractCircuitBreaker.State
-
Packages that use AbstractCircuitBreaker.State Package Description org.apache.commons.lang3.concurrent 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.State Modifier and Type Field Description protected java.util.concurrent.atomic.AtomicReference<AbstractCircuitBreaker.State>
AbstractCircuitBreaker. state
The current state of this circuit breaker.private static java.util.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.State Modifier and Type Method Description abstract AbstractCircuitBreaker.State
AbstractCircuitBreaker.State. oppositeState()
Returns the opposite state to the represented state.static AbstractCircuitBreaker.State
AbstractCircuitBreaker.State. valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static AbstractCircuitBreaker.State[]
AbstractCircuitBreaker.State. values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods in org.apache.commons.lang3.concurrent that return types with arguments of type AbstractCircuitBreaker.State Modifier and Type Method Description private static java.util.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.State Modifier and Type Method Description protected 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.private EventCountCircuitBreaker.CheckIntervalData
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.
-