Open
io.chrisdavenport.circuit.CircuitBreaker$.Open
State of the CircuitBreaker in which the circuit breaker rejects all tasks with a RejectedExecution.
Contract:
- all tasks fail fast with
RejectedExecution
- after the configured
resetTimeout
, the circuit breaker enters a HalfOpen state, allowing one task to go through for testing the connection
Attributes
- resetTimeout
is the current
resetTimeout
that is applied to thisOpen
state, to be passed to thebackoff
function for the next transition fromHalfOpen
toOpen
, in case the reset attempt fails- startedAt
is the timestamp in milliseconds since the epoch when the transition to
Open
happened- Source:
- CircuitBreaker.scala
- Graph
- Supertypes