StateTransition

data class StateTransition(val fromState: CircuitBreakerState, val toState: CircuitBreakerState, val manual: Boolean = false) : CircuitBreakerEvent(source)

Represents an event triggered when the circuit breaker transitions to a new state.

Parameters

fromState

The state the circuit breaker is transitioning from.

toState

The state the circuit breaker is transitioning to.

manual

Whether the transition was triggered manually or not.

Constructors

Link copied to clipboard
constructor(fromState: CircuitBreakerState, toState: CircuitBreakerState, manual: Boolean = false)

Properties

Link copied to clipboard
Link copied to clipboard
val manual: Boolean = false
Link copied to clipboard