Open

data class Open(val delayDuration: Duration, val startTimerMark: ComparableTimeMark, val nrOfTransitionsToOpenStateInACycle: Int) : CircuitBreakerState(source)

Represents the state where the circuit breaker is open and all calls are blocked.

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

Constructors

Link copied to clipboard
internal constructor(delayDuration: Duration, startTimerMark: ComparableTimeMark, nrOfTransitionsToOpenStateInACycle: Int)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String