CircuitBreakerOpenException
class CircuitBreakerOpenException(val currentState: CircuitState, val retryAfter: Duration?) : Exception
Exception thrown when the CircuitBreaker rejects a call without executing it.
This occurs when the circuit is in the CircuitState.OPEN state, or when the concurrent call limit has been reached in the CircuitState.HALF_OPEN state.
Properties
Link copied to clipboard
The state of the circuit when the call was rejected.
Link copied to clipboard
A suggested duration to wait before attempting another call. This is typically provided when the state is CircuitState.OPEN.