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 RetryTemplateBuilder
RetryTemplate.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 thanmaxAttempts
times.RetryTemplateBuilder.noBackoff()
Retry immediately without pausing between attempts.RetryTemplateBuilder.notRetryOn
(Class<? extends Throwable> throwable) Add theThrowable
and its subclasses to the list of exceptions that do not cause a retry.RetryTemplateBuilder.notRetryOn
(List<Class<? extends Throwable>> throwables) Add the list ofThrowable
classes and their subclasses to the list of exceptions that do not cause a retry.Add theThrowable
and its subclasses to the list of exceptions that cause a retry.Add the list ofThrowable
classes and their subclasses to the list of exceptions that cause a retry.RetryTemplateBuilder.traversingCauses()
Enable examining exception causes forThrowable
instances 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 providedlistener
toRetryTemplate
's list of listeners.RetryTemplateBuilder.withListeners
(List<RetryListener> listeners) Append all providedlisteners
toRetryTemplate
's list of listeners.RetryTemplateBuilder.withLogger
(org.apache.commons.logging.Log logger) Applies a dedicated logger to theRetryTemplate
.RetryTemplateBuilder.withTimeout
(long timeoutMillis) Retry untiltimeoutMillis
has passed since the initial attempt.RetryTemplateBuilder.withTimeout
(Duration timeout) Retry untiltimeout
has passed since the initial attempt.
withTimeout(long)
instead.