Uses of Class
org.springframework.retry.support.RetryTemplateBuilder
Packages that use RetryTemplateBuilder
Package
Description
Infrastructure implementations of retry support concerns.
-
Uses of RetryTemplateBuilder in org.springframework.retry.support
Methods in org.springframework.retry.support that return RetryTemplateBuilderModifier and TypeMethodDescriptionstatic RetryTemplateBuilderRetryTemplate.builder()Main entry point to configure RetryTemplate using fluent API.RetryTemplateBuilder.customBackoff(BackOffPolicy backOffPolicy) Use the providedBackOffPolicy.RetryTemplateBuilder.customPolicy(RetryPolicy policy) Use the providedRetryPolicy.RetryTemplateBuilder.exponentialBackoff(long initialInterval, double multiplier, long maxInterval) Use an exponential backoff policy.RetryTemplateBuilder.exponentialBackoff(long initialInterval, double multiplier, long maxInterval, boolean withRandom) Use an exponential backoff policy.RetryTemplateBuilder.exponentialBackoff(Duration initialInterval, double multiplier, Duration maxInterval) Use an exponential backoff policy.RetryTemplateBuilder.exponentialBackoff(Duration initialInterval, double multiplier, Duration maxInterval, boolean withRandom) Use an exponential backoff policy.RetryTemplateBuilder.fixedBackoff(long interval) Perform each retry after a fixed amount of time.RetryTemplateBuilder.fixedBackoff(Duration interval) Perform each retry after fixed amount of time.RetryTemplateBuilder.infiniteRetry()Retry actions infinitely.RetryTemplateBuilder.maxAttempts(int maxAttempts) Attempt an action no more thanmaxAttemptstimes.RetryTemplateBuilder.noBackoff()Retry immediately without pausing between attempts.RetryTemplateBuilder.notRetryOn(Class<? extends Throwable> throwable) Add theThrowableand its subclasses to the list of exceptions that do not cause a retry.RetryTemplateBuilder.notRetryOn(List<Class<? extends Throwable>> throwables) Add the list ofThrowableclasses and their subclasses to the list of exceptions that do not cause a retry.Add theThrowableand its subclasses to the list of exceptions that cause a retry.Add the list ofThrowableclasses and their subclasses to the list of exceptions that cause a retry.RetryTemplateBuilder.traversingCauses()Enable examining exception causes forThrowableinstances that cause a retry.RetryTemplateBuilder.uniformRandomBackoff(long minInterval, long maxInterval) RetryTemplateBuilder.uniformRandomBackoff(Duration minInterval, Duration maxInterval) RetryTemplateBuilder.withinMillis(long timeout) Deprecated, for removal: This API element is subject to removal in a future version.RetryTemplateBuilder.withListener(RetryListener listener) Append the providedlistenertoRetryTemplate's list of listeners.RetryTemplateBuilder.withListeners(List<RetryListener> listeners) Append all providedlistenerstoRetryTemplate's list of listeners.RetryTemplateBuilder.withLogger(org.apache.commons.logging.Log logger) Applies a dedicated logger to theRetryTemplate.RetryTemplateBuilder.withTimeout(long timeoutMillis) Retry untiltimeoutMillishas passed since the initial attempt.RetryTemplateBuilder.withTimeout(Duration timeout) Retry untiltimeouthas passed since the initial attempt.
withTimeout(long)instead.