Annotation Interface ResilienceCircuitBreaker


@Documented @Inherited @Target({TYPE,METHOD}) @Retention(RUNTIME) public @interface ResilienceCircuitBreaker
  • 元素详细资料

    • name

      String name
      默认值:
      ""
    • slidingWindowType

      io.github.resilience4j.circuitbreaker.CircuitBreakerConfig.SlidingWindowType slidingWindowType
      默认值:
      COUNT_BASED
    • slidingWindowSize

      int slidingWindowSize
      默认值:
      100
    • minimumNumberOfCalls

      int minimumNumberOfCalls
      默认值:
      100
    • failureRateThreshold

      float failureRateThreshold
      默认值:
      50.0f
    • slowCallRateThreshold

      float slowCallRateThreshold
      默认值:
      100.0f
    • slowCallDurationThresholdInSeconds

      int slowCallDurationThresholdInSeconds
      默认值:
      60
    • recordResultPredicate

      Class<? extends Predicate> recordResultPredicate
      默认值:
      java.util.function.Predicate.class
    • automaticTransitionFromOpenToHalfOpenEnabled

      boolean automaticTransitionFromOpenToHalfOpenEnabled
      默认值:
      false
    • waitDurationInOpenStateInSeconds

      int waitDurationInOpenStateInSeconds
      默认值:
      60
    • permittedNumberOfCallsInHalfOpenState

      int permittedNumberOfCallsInHalfOpenState
      默认值:
      10
    • maxWaitDurationInHalfOpenStateInSeconds

      int maxWaitDurationInHalfOpenStateInSeconds
      默认值:
      0
    • state

      默认值:
      ENABLED
    • fallback

      默认值:
      com.github.charlemaznable.httpclient.resilience.function.ResilienceCircuitBreakerRecover.class