CircuitBreakerEvent

Represents all possible CircuitBreaker events that can be triggered in a CircuitBreaker mechanism.

Inheritors

Constructors

Link copied to clipboard
protected constructor()

Types

Link copied to clipboard

Represents an event triggered when a call is not permitted.

Link copied to clipboard
data class RecordedFailure(val failureRate: Double) : CircuitBreakerEvent

Represents an event triggered when a failed operation is recorded.

Link copied to clipboard
data class RecordedSuccess(val failureRate: Double) : CircuitBreakerEvent

Represents an event triggered when a successful operation is recorded.

Link copied to clipboard

Represents an event triggered when the circuit breaker resets.

Link copied to clipboard
data class StateTransition(val fromState: CircuitBreakerState, val toState: CircuitBreakerState, val manual: Boolean = false) : CircuitBreakerEvent

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