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 TypeClassDescriptionclassARetryPolicythat always permits a retry.classA policy, that is based onBinaryExceptionClassifier.classclassARetryPolicythat composes a list of other policies and delegates calls to them in order.classARetryPolicythat dynamically adapts to one of a set of injected policies according to the value of the latest exception.classSubclass ofSimpleRetryPolicythat delegates to super.canRetry() and, if true, further evaluates an expression against the last thrown exception.classSimple retry policy that is aware only about attempt count and retries a fixed number of times.classARetryPolicythat allows the first attempt but never permits a retry.classclassSimple retry policy that retries a fixed number of times for a set of named exceptions (and subclasses).classARetryPolicythat allows a retry only if it hasn't timed out.Methods in org.springframework.retry.policy with parameters of type RetryPolicyModifier and TypeMethodDescriptionvoidCompositeRetryPolicy.setPolicies(RetryPolicy[] policies) Setter for policies.Method parameters in org.springframework.retry.policy with type arguments of type RetryPolicyModifier and TypeMethodDescriptionvoidExceptionClassifierRetryPolicy.setExceptionClassifier(Classifier<Throwable, RetryPolicy> exceptionClassifier) Setter for an exception classifier.voidExceptionClassifierRetryPolicy.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 booleanRetryTemplate.canRetry(RetryPolicy retryPolicy, RetryContext context) Decide whether to proceed with the ongoing retry attempt.protected voidRetryTemplate.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 RetryContextRetryTemplate.open(RetryPolicy retryPolicy, RetryState state) Delegate to theRetryPolicyhaving checked in the cache for an existing value if the state is not null.protected voidRetryTemplate.registerThrowable(RetryPolicy retryPolicy, RetryState state, RetryContext context, Throwable e) voidRetryTemplate.setRetryPolicy(RetryPolicy retryPolicy) Setter forRetryPolicy.protected booleanRetryTemplate.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)