The initial State of the TaskCircuitBreaker.
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.
State of the TaskCircuitBreaker in which the circuit breaker rejects all tasks with an ExecutionRejectedException.
An enumeration that models the internal state of TaskCircuitBreaker, kept in an Atomic for synchronization.
Type-alias to document timestamps specified in milliseconds, as returned by Scheduler.currentTimeMillis.
Builder for a TaskCircuitBreaker reference.
Builder for a TaskCircuitBreaker reference.
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 for signaling rejected tasks
is for signaling a transition to Closed
is for signaling a transition to HalfOpen
is for signaling a transition to Open
is the PaddingStrategy to apply to the underlying atomic reference used, to use in case contention and "false sharing" become a problem