Interface CircuitBreakerConfig.NamedConfig
- Enclosing interface:
- CircuitBreakerConfig
failureRateThreshold() Configures the failure rate threshold in percentage. If the failure rate is equal to or greater than the threshold, the CircuitBreaker transitions to open and starts short-circuiting calls. The threshold must be greater than 0 and not greater than 100.
waitDurationInOpenState() Configures an interval function with a fixed wait duration which controls how long the CircuitBreaker should stay open, before it switches to half open.
permittedCallsInHalfOpenState() Configures the number of permitted calls that must succeed when the CircuitBreaker is half open.
slidingWindowSize() Configures the sliding window which is used to record the outcome of calls when the CircuitBreaker is closed.
minimumRequiredCalls() Configures the minimum number of calls which are required (per sliding window period) before the CircuitBreaker can calculate the error rate.
failurePredicateName() CircuitBreakerPredicate.name() default is KoraCircuitBreakerPredicate
-
Method Details
-
enabled
-
failureRateThreshold
-
waitDurationInOpenState
-
permittedCallsInHalfOpenState
-
slidingWindowSize
-
minimumRequiredCalls
-
failurePredicateName
-