CircuitBreakerRegistry

Registry for managing multiple named circuit breakers.

Types

Link copied to clipboard

Functions

Link copied to clipboard
suspend fun get(name: String): CircuitBreaker?

Gets an existing circuit breaker by name.

Link copied to clipboard
suspend fun getNames(): Set<String>

Returns the names of all registered circuit breakers.

Link copied to clipboard
suspend fun getOrCreate(name: String, configure: CircuitBreakerConfigBuilder.() -> Unit? = null): CircuitBreaker

Gets or creates a circuit breaker with the given name.

Link copied to clipboard

Returns statistics for all registered circuit breakers, keyed by name.

Link copied to clipboard
suspend fun remove(name: String): CircuitBreaker?

Removes a circuit breaker from the registry.

Link copied to clipboard
suspend fun resetAll()

Resets all circuit breakers in the registry to closed state.