Interface SimpleCircuitBreakerConfig.NamedConfig

Enclosing interface:
SimpleCircuitBreakerConfig

public static interface SimpleCircuitBreakerConfig.NamedConfig
You can use Resilient4j documentation as a description of how CircuitBreaker works and how similar properties are configution its parts

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() CircuitBreakerFailurePredicate.name() default is SimpleCircuitBreakerFailurePredicate

  • Method Details

    • failureRateThreshold

      @Nullable Integer failureRateThreshold()
    • waitDurationInOpenState

      @Nullable Duration waitDurationInOpenState()
    • permittedCallsInHalfOpenState

      @Nullable Integer permittedCallsInHalfOpenState()
    • slidingWindowSize

      @Nullable Long slidingWindowSize()
    • minimumRequiredCalls

      @Nullable Long minimumRequiredCalls()
    • failurePredicateName

      default String failurePredicateName()