HalfOpen

internal constructor(nrOfCallsAttempted: Int, startTimerMark: ComparableTimeMark?, nrOfTransitionsToOpenStateInACycle: Int)(source)

Parameters

nrOfCallsAttempted

The number of calls attempted in the HalfOpen state. If this number exceeds the configured maximum number of calls allowed in the HalfOpen state, subsequent calls will be rejected as the state will transition back to the Open state.

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.

nrOfTransitionsToOpenStateInACycle

The number of times the circuit breaker has transitioned to the Open state in a cycle (i.e., Closed ->Open starts a new cycle).