HalfOpen
data class HalfOpen(val nrOfCallsAttempted: Int, val startTimerMark: ComparableTimeMark?, val nrOfTransitionsToOpenStateInACycle: Int) : CircuitBreakerState(source)
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.
Parameters
startTimerMark
The time mark at which the circuit breaker entered this state. Could be null
if the maximum wait duration in this state was configured to be Duration.ZERO
. Which means that the circuit breaker will wait indefinitely in this state, until all permitted calls have been attempted.
Constructors
Link copied to clipboard
internal constructor(nrOfCallsAttempted: Int, startTimerMark: ComparableTimeMark?, nrOfTransitionsToOpenStateInACycle: Int)