org.llm4s.reliability.CircuitBreakerConfig
See theCircuitBreakerConfig companion class
object CircuitBreakerConfig
Attributes
- Companion
- class
- Source
- ReliabilityConfig.scala
- Graph
-
- Supertypes
- Self type
-
CircuitBreakerConfig.type
Members list
Type members
Inherited and Abstract types
The names of the product elements
The name of the type
Value members
Concrete methods
def apply(failureThreshold: Int, recoveryTimeout: FiniteDuration, successThreshold: Int): CircuitBreakerConfig
Creates a CircuitBreakerConfig. Named arguments are the supported way to construct one.
Creates a CircuitBreakerConfig. Named arguments are the supported way to construct one.
Attributes
- Source
- ReliabilityConfig.scala
Concrete fields
Aggressive: more failures tolerated, faster recovery
Conservative: fewer failures tolerated, longer recovery
Default circuit breaker: 5 failures, 30s recovery
Disabled: never open circuit (for testing)
In this article
