final case classHalfOpen(resetTimeout: FiniteDuration) extends State with Product with Serializable
State of the TaskCircuitBreaker in which the circuit
breaker has already allowed a task to go through, as a reset
attempt, in order to test the connection.
Contract:
The first task when Open has expired is allowed through
without failing fast, just before the circuit breaker is
evolved into the HalfOpen state
All tasks attempted in HalfOpen fail-fast with an exception
just as in Open state
If that task attempt succeeds, the breaker is reset back to
the Closed state, with the resetTimeout and the
failures count also reset to initial values
If the first call fails, the breaker is tripped again into
the Open state (the resetTimeout is multiplied by the
exponential backoff factor)
resetTimeout
is the current resetTimeout that was
applied to the previous Open state, to be multiplied by
the exponential backoff factor for the next transition to
Open, in case the reset attempt fails
Linear Supertypes
Serializable, Serializable, Product, Equals, State, AnyRef, Any
is the current resetTimeout that was
applied to the previous Open state, to be multiplied by
the exponential backoff factor for the next transition to
Open, in case the reset attempt fails
is the current resetTimeout that was
applied to the previous Open state, to be multiplied by
the exponential backoff factor for the next transition to
Open, in case the reset attempt fails
State of the TaskCircuitBreaker in which the circuit breaker has already allowed a task to go through, as a reset attempt, in order to test the connection.
Contract:
Open
has expired is allowed through without failing fast, just before the circuit breaker is evolved into theHalfOpen
stateHalfOpen
fail-fast with an exception just as in Open stateClosed
state, with theresetTimeout
and thefailures
count also reset to initial valuesOpen
state (theresetTimeout
is multiplied by the exponential backoff factor)is the current
resetTimeout
that was applied to the previousOpen
state, to be multiplied by the exponential backoff factor for the next transition toOpen
, in case the reset attempt fails