Package | Description |
---|---|
org.apache.commons.lang3.concurrent |
Provides support classes for multi-threaded programming.
|
Modifier and Type | Field and Description |
---|---|
private java.util.concurrent.atomic.AtomicReference<EventCountCircuitBreaker.CheckIntervalData> |
EventCountCircuitBreaker.checkIntervalData
Stores information about the current check interval.
|
Modifier and Type | Method and Description |
---|---|
EventCountCircuitBreaker.CheckIntervalData |
EventCountCircuitBreaker.CheckIntervalData.increment(int delta)
Returns a new instance of
CheckIntervalData with the event counter
incremented by the given delta. |
private EventCountCircuitBreaker.CheckIntervalData |
EventCountCircuitBreaker.nextCheckIntervalData(int increment,
EventCountCircuitBreaker.CheckIntervalData currentData,
AbstractCircuitBreaker.State currentState,
long time)
Calculates the next
CheckIntervalData object based on the current data and
the current state. |
Modifier and Type | Method and Description |
---|---|
boolean |
EventCountCircuitBreaker.StateStrategy.isCheckIntervalFinished(EventCountCircuitBreaker breaker,
EventCountCircuitBreaker.CheckIntervalData currentData,
long now)
Returns a flag whether the end of the current check interval is reached.
|
abstract boolean |
EventCountCircuitBreaker.StateStrategy.isStateTransition(EventCountCircuitBreaker breaker,
EventCountCircuitBreaker.CheckIntervalData currentData,
EventCountCircuitBreaker.CheckIntervalData nextData)
Checks whether the specified
CheckIntervalData objects indicate that a
state transition should occur. |
boolean |
EventCountCircuitBreaker.StateStrategyClosed.isStateTransition(EventCountCircuitBreaker breaker,
EventCountCircuitBreaker.CheckIntervalData currentData,
EventCountCircuitBreaker.CheckIntervalData nextData)
Checks whether the specified
CheckIntervalData objects indicate that a
state transition should occur. |
boolean |
EventCountCircuitBreaker.StateStrategyOpen.isStateTransition(EventCountCircuitBreaker breaker,
EventCountCircuitBreaker.CheckIntervalData currentData,
EventCountCircuitBreaker.CheckIntervalData nextData)
Checks whether the specified
CheckIntervalData objects indicate that a
state transition should occur. |
private EventCountCircuitBreaker.CheckIntervalData |
EventCountCircuitBreaker.nextCheckIntervalData(int increment,
EventCountCircuitBreaker.CheckIntervalData currentData,
AbstractCircuitBreaker.State currentState,
long time)
Calculates the next
CheckIntervalData object based on the current data and
the current state. |
private boolean |
EventCountCircuitBreaker.updateCheckIntervalData(EventCountCircuitBreaker.CheckIntervalData currentData,
EventCountCircuitBreaker.CheckIntervalData nextData)
Updates the
CheckIntervalData object. |