of
Attempts to create a CircuitBreaker.
Parameters
is the maximum count for failures before opening the circuit breaker.
is the timeout to wait in the Open
state before attempting a close of the circuit breaker (but without the backoff factor applied).
is a factor to use for resetting the resetTimeout
when in the HalfOpen
state, in case the attempt to Close
fails.
is the maximum timeout the circuit breaker is allowed to use when applying the exponentialBackoffFactor
.
is a callback for signaling rejected tasks, so every time a task execution is attempted and rejected in CircuitBreaker.Open or CircuitBreaker.HalfOpen states.
is a callback for signaling transitions to the CircuitBreaker.State.Closed state.
is a callback for signaling transitions to CircuitBreaker.State.HalfOpen.
is a callback for signaling transitions to CircuitBreaker.State.Open.