onCallNotPermitted

suspend fun onCallNotPermitted(action: suspend (CircuitBreakerEvent.CallNotPermitted) -> Unit): Job(source)

Executes the given action when a request is not permitted by the circuit breaker, either because it is in the Open state or the permitted number of calls in the HalfOpen state has been exceeded and the circuit breaker is still in the HalfOpen state.

See also