Uses of Interface
org.springframework.retry.RetryPolicy
Packages that use RetryPolicy
Package
Description
Infrastructure implementations of retry aop concerns.
Infrastructure implementations of retry policy concerns.
Infrastructure implementations of retry support concerns.
-
Uses of RetryPolicy in org.springframework.retry.interceptor
Methods in org.springframework.retry.interceptor with parameters of type RetryPolicyModifier and TypeMethodDescriptionRetryInterceptorBuilder.CircuitBreakerInterceptorBuilder.retryPolicy
(RetryPolicy policy) RetryInterceptorBuilder.retryPolicy
(RetryPolicy policy) Apply the retry policy - cannot be used if a custom retry template has been provided, or the max attempts or back off options or policy have been applied.RetryInterceptorBuilder.StatefulRetryInterceptorBuilder.retryPolicy
(RetryPolicy policy) -
Uses of RetryPolicy in org.springframework.retry.policy
Classes in org.springframework.retry.policy that implement RetryPolicyModifier and TypeClassDescriptionclass
ARetryPolicy
that always permits a retry.class
A policy, that is based onBinaryExceptionClassifier
.class
class
ARetryPolicy
that composes a list of other policies and delegates calls to them in order.class
ARetryPolicy
that dynamically adapts to one of a set of injected policies according to the value of the latest exception.class
Subclass ofSimpleRetryPolicy
that delegates to super.canRetry() and, if true, further evaluates an expression against the last thrown exception.class
Simple retry policy that is aware only about attempt count and retries a fixed number of times.class
ARetryPolicy
that allows the first attempt but never permits a retry.class
class
Simple retry policy that retries a fixed number of times for a set of named exceptions (and subclasses).class
ARetryPolicy
that allows a retry only if it hasn't timed out.Methods in org.springframework.retry.policy with parameters of type RetryPolicyModifier and TypeMethodDescriptionvoid
CompositeRetryPolicy.setPolicies
(RetryPolicy[] policies) Setter for policies.Method parameters in org.springframework.retry.policy with type arguments of type RetryPolicyModifier and TypeMethodDescriptionvoid
ExceptionClassifierRetryPolicy.setExceptionClassifier
(Classifier<Throwable, RetryPolicy> exceptionClassifier) Setter for an exception classifier.void
ExceptionClassifierRetryPolicy.setPolicyMap
(Map<Class<? extends Throwable>, RetryPolicy> policyMap) Setter for policy map used to create a classifier.Constructors in org.springframework.retry.policy with parameters of type RetryPolicy -
Uses of RetryPolicy in org.springframework.retry.support
Methods in org.springframework.retry.support with parameters of type RetryPolicyModifier and TypeMethodDescriptionprotected boolean
RetryTemplate.canRetry
(RetryPolicy retryPolicy, RetryContext context) Decide whether to proceed with the ongoing retry attempt.protected void
RetryTemplate.close
(RetryPolicy retryPolicy, RetryContext context, RetryState state, boolean succeeded) Clean up the cache if necessary and close the context provided (if the flag indicates that processing was successful).RetryTemplateBuilder.customPolicy
(RetryPolicy policy) Use the providedRetryPolicy
.protected RetryContext
RetryTemplate.open
(RetryPolicy retryPolicy, RetryState state) Delegate to theRetryPolicy
having checked in the cache for an existing value if the state is not null.protected void
RetryTemplate.registerThrowable
(RetryPolicy retryPolicy, RetryState state, RetryContext context, Throwable e) void
RetryTemplate.setRetryPolicy
(RetryPolicy retryPolicy) Setter forRetryPolicy
.protected boolean
RetryTemplate.shouldRethrow
(RetryPolicy retryPolicy, RetryContext context, RetryState state) Extension point for subclasses to decide on behaviour after catching an exception in aRetryCallback
.Constructors in org.springframework.retry.support with parameters of type RetryPolicyModifierConstructorDescriptionRetrySimulator
(SleepingBackOffPolicy<?> backOffPolicy, RetryPolicy retryPolicy)