Uses of Class
io.github.resilience4j.retry.RetryConfig.Builder
Packages that use RetryConfig.Builder
-
Uses of RetryConfig.Builder in io.github.resilience4j.retry
Methods in io.github.resilience4j.retry that return RetryConfig.BuilderModifier and TypeMethodDescriptionRetryConfig.Builder.consumeResultBeforeRetryAttempt(BiConsumer<Integer, T> consumeResultBeforeRetryAttempt) Configure a BiConsumer which performs post actions if a result should be retried.static <T> RetryConfig.Builder<T> RetryConfig.custom()Returns a builder to create a custom RetryConfig.RetryConfig.Builder.failAfterMaxAttempts(boolean bool) Configures the Retry to throw aMaxRetriesExceededexception onceRetryConfig.Builder.maxAttemptshas been reached, and the result is still not satisfactory (according toRetryConfig.Builder.retryOnResultPredicate)static <T> RetryConfig.Builder<T> RetryConfig.from(RetryConfig baseConfig) final RetryConfig.Builder<T> RetryConfig.Builder.ignoreExceptions(Class<? extends Throwable>... errorClasses) Configures a list of error classes that are ignored and thus are not retried.RetryConfig.Builder.intervalBiFunction(io.github.resilience4j.core.IntervalBiFunction<T> f) Set a function to modify the waiting interval after a failure based on attempt number and result or exception.RetryConfig.Builder.intervalFunction(io.github.resilience4j.core.IntervalFunction f) Set a function to modify the waiting interval after a failure.RetryConfig.Builder.maxAttempts(int maxAttempts) final RetryConfig.Builder<T> RetryConfig.Builder.retryExceptions(Class<? extends Throwable>... errorClasses) Configures a list of error classes that are recorded as a failure and thus are retried.RetryConfig.Builder.retryOnException(Predicate<Throwable> predicate) Configures a Predicate which evaluates if an exception should be retried.RetryConfig.Builder.retryOnResult(Predicate<T> predicate) Configures a Predicate which evaluates if an result should be retried.RetryConfig.Builder.waitDuration(Duration waitDuration) RetryConfig.Builder.writableStackTraceEnabled(boolean bool) Enables writable stack traces.