onStateChange

abstract fun onStateChange(oldState: CircuitBreakerState, newState: CircuitBreakerState)(source)

Called whenever the circuit breaker transitions between states.

Parameters

oldState

The state the circuit breaker transitioned from

newState

The state the circuit breaker transitioned to