CircuitBreakerConfig

org.llm4s.reliability.CircuitBreakerConfig
See theCircuitBreakerConfig companion object
@Stable
final case class CircuitBreakerConfig

Circuit breaker configuration for service resilience.

Value parameters

failureThreshold

Number of consecutive failures before opening circuit

recoveryTimeout

Time to wait before attempting recovery (half-open state)

successThreshold

Number of successes in half-open state to close circuit

Attributes

Companion
object
Source
ReliabilityConfig.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

This configuration, or the first value a circuit breaker cannot run with: failureThreshold and successThreshold must be at least 1, and recoveryTimeout not negative.

This configuration, or the first value a circuit breaker cannot run with: failureThreshold and successThreshold must be at least 1, and recoveryTimeout not negative.

Attributes

Source
ReliabilityConfig.scala

Set failure threshold

Set failure threshold

Attributes

Source
ReliabilityConfig.scala

Set recovery timeout

Set recovery timeout

Attributes

Source
ReliabilityConfig.scala

Set success threshold

Set success threshold

Attributes

Source
ReliabilityConfig.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product