Open

internal constructor(delayDuration: Duration, startTimerMark: ComparableTimeMark, nrOfTransitionsToOpenStateInACycle: Int)(source)

Parameters

delayDuration

The duration for which the circuit breaker will remain in this state. When exceeded, the circuit breaker will transition to the HalfOpen state.

startTimerMark

The time mark at which the circuit breaker entered this state.

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).