CircuitBreaker

Circuit breaker state machine.

Thread-safe for concurrent coroutine access via @Synchronized-like atomic operations.

Constructors

Link copied to clipboard
constructor(config: CircuitBreakerConfig)

Functions

Link copied to clipboard

Checks if a request should be allowed through.

Link copied to clipboard

Records a failed request. Opens the circuit if threshold is exceeded.

Link copied to clipboard

Records a successful request. Resets the circuit to closed.