Uses of Class
io.github.resilience4j.circuitbreaker.CircuitBreakerConfig.Builder
Packages that use CircuitBreakerConfig.Builder
-
Uses of CircuitBreakerConfig.Builder in io.github.resilience4j.circuitbreaker
Methods in io.github.resilience4j.circuitbreaker that return CircuitBreakerConfig.BuilderModifier and TypeMethodDescriptionCircuitBreakerConfig.Builder.automaticTransitionFromOpenToHalfOpenEnabled(boolean enableAutomaticTransitionFromOpenToHalfOpen) Enables automatic transition from OPEN to HALF_OPEN state once the waitDurationInOpenState has passed.CircuitBreakerConfig.Builder.currentTimestampFunction(Function<Clock, Long> currentTimestampFunction, TimeUnit timeUnit) Configures a function that returns current timestamp for CircuitBreaker.static CircuitBreakerConfig.BuilderCircuitBreakerConfig.custom()Returns a builder to create a custom CircuitBreakerConfig.CircuitBreakerConfig.Builder.enableAutomaticTransitionFromOpenToHalfOpen()Enables automatic transition from OPEN to HALF_OPEN state once the waitDurationInOpenState has passed.CircuitBreakerConfig.Builder.failureRateThreshold(float failureRateThreshold) Configures the failure rate threshold in percentage.static CircuitBreakerConfig.BuilderCircuitBreakerConfig.from(CircuitBreakerConfig baseConfig) Returns a builder to create a custom CircuitBreakerConfig based on another CircuitBreakerConfig.CircuitBreakerConfig.Builder.ignoreException(Predicate<Throwable> predicate) Configures a Predicate which evaluates if an exception should be ignored and neither count as a failure nor success.CircuitBreakerConfig.Builder.ignoreExceptions(Class<? extends Throwable>... errorClasses) Configures a list of error classes that are ignored and thus neither count as a failure nor success.CircuitBreakerConfig.Builder.maxWaitDurationInHalfOpenState(Duration maxWaitDurationInHalfOpenState) Configures CircuitBreaker with a fixed wait duration which controls how long the CircuitBreaker should stay in Half Open state, before it switches to open.CircuitBreakerConfig.Builder.minimumNumberOfCalls(int minimumNumberOfCalls) Configures the minimum number of calls which are required (per sliding window period) before the CircuitBreaker can calculate the error rate.CircuitBreakerConfig.Builder.permittedNumberOfCallsInHalfOpenState(int permittedNumberOfCallsInHalfOpenState) Configures the number of permitted calls when the CircuitBreaker is half open.CircuitBreakerConfig.Builder.recordException(Predicate<Throwable> predicate) Configures a Predicate which evaluates if an exception should be recorded as a failure and thus increase the failure rate.CircuitBreakerConfig.Builder.recordExceptions(Class<? extends Throwable>... errorClasses) Configures a list of error classes that are recorded as a failure and thus increase the failure rate.CircuitBreakerConfig.Builder.recordResult(Predicate<Object> predicate) Configures a Predicate which evaluates if the result of the protected function call should be recorded as a failure and thus increase the failure rate.CircuitBreakerConfig.Builder.slidingWindow(int slidingWindowSize, int minimumNumberOfCalls, CircuitBreakerConfig.SlidingWindowType slidingWindowType) Configures the sliding window which is used to record the outcome of calls when the CircuitBreaker is closed.CircuitBreakerConfig.Builder.slidingWindowSize(int slidingWindowSize) Configures the size of the sliding window which is used to record the outcome of calls when the CircuitBreaker is closed.CircuitBreakerConfig.Builder.slidingWindowType(CircuitBreakerConfig.SlidingWindowType slidingWindowType) Configures the type of the sliding window which is used to record the outcome of calls when the CircuitBreaker is closed.CircuitBreakerConfig.Builder.slowCallDurationThreshold(Duration slowCallDurationThreshold) Configures the duration threshold above which calls are considered as slow and increase the slow calls percentage.CircuitBreakerConfig.Builder.slowCallRateThreshold(float slowCallRateThreshold) Configures a threshold in percentage.CircuitBreakerConfig.Builder.transitionOnResult(Function<io.github.resilience4j.core.functions.Either<Object, Throwable>, CircuitBreakerConfig.TransitionCheckResult> transitionOnResult) Configures a function which can decide if the circuit breaker should transition to a different state base on the result of the protected function.CircuitBreakerConfig.Builder.waitDurationInOpenState(Duration 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.CircuitBreakerConfig.Builder.waitIntervalFunctionInOpenState(io.github.resilience4j.core.IntervalFunction waitIntervalFunctionInOpenState) Configures an interval function which controls how long the CircuitBreaker should stay open, before it switches to half open.CircuitBreakerConfig.Builder.writableStackTraceEnabled(boolean writableStackTraceEnabled) Enables writable stack traces.