private static class EventCountCircuitBreaker.StateStrategyOpen extends EventCountCircuitBreaker.StateStrategy
StateStrategy implementation for the state open.| Modifier | Constructor and Description |
|---|---|
private |
StateStrategyOpen() |
| Modifier and Type | Method and Description |
|---|---|
protected long |
fetchCheckInterval(EventCountCircuitBreaker breaker)
Obtains the check interval to applied for the represented state from the given
CircuitBreaker. |
boolean |
isStateTransition(EventCountCircuitBreaker breaker,
EventCountCircuitBreaker.CheckIntervalData currentData,
EventCountCircuitBreaker.CheckIntervalData nextData)
Checks whether the specified
CheckIntervalData objects indicate that a
state transition should occur. |
isCheckIntervalFinishedpublic boolean isStateTransition(EventCountCircuitBreaker breaker, EventCountCircuitBreaker.CheckIntervalData currentData, EventCountCircuitBreaker.CheckIntervalData nextData)
CheckIntervalData objects indicate that a
state transition should occur. Here the logic which checks for thresholds
depending on the current state is implemented.isStateTransition in class EventCountCircuitBreaker.StateStrategybreaker - the CircuitBreakercurrentData - the current CheckIntervalData objectnextData - the updated CheckIntervalData objectprotected long fetchCheckInterval(EventCountCircuitBreaker breaker)
CircuitBreaker.fetchCheckInterval in class EventCountCircuitBreaker.StateStrategybreaker - the CircuitBreaker