CircuitBreakerState
Represents the possible states of a CircuitBreaker.
Inheritors
Types
Link copied to clipboard
Represents the state where the circuit breaker is closed and all calls are allowed.
Link copied to clipboard
data class HalfOpen(val nrOfCallsAttempted: Int, val startTimerMark: ComparableTimeMark?, val nrOfTransitionsToOpenStateInACycle: Int) : CircuitBreakerState
Represents the state where the circuit breaker is HalfOpen, and only a limited/permitted number of calls are allowed to test if the underlying operation is still failing.
Link copied to clipboard
data class Open(val delayDuration: Duration, val startTimerMark: ComparableTimeMark, val nrOfTransitionsToOpenStateInACycle: Int) : CircuitBreakerState
Represents the state where the circuit breaker is open and all calls are blocked.