CircuitBreakerConfig

org.llm4s.reliability.CircuitBreakerConfig
See theCircuitBreakerConfig companion object
final case class CircuitBreakerConfig(failureThreshold: Int, recoveryTimeout: Duration, successThreshold: Int)

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
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

Set failure threshold

Set failure threshold

Attributes

def withRecoveryTimeout(timeout: Duration): CircuitBreakerConfig

Set recovery timeout

Set recovery timeout

Attributes

Set success threshold

Set success threshold

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product