Uses of Interface
org.springframework.core.retry.RetryPolicy
Packages that use RetryPolicy
Package
Description
Main package for the core retry functionality.
Support package for the core retry functionality.
-
Uses of RetryPolicy in org.springframework.core.retry
Methods in org.springframework.core.retry that return RetryPolicyModifier and TypeMethodDescriptionRetryPolicy.Builder.build()Build the configuredRetryPolicy.static RetryPolicyRetryPolicy.withDefaults()Create aRetryPolicywith default configuration.static RetryPolicyRetryPolicy.withMaxAttempts(long maxAttempts) Create aRetryPolicyconfigured with a maximum number of retry attempts.Methods in org.springframework.core.retry with parameters of type RetryPolicyModifier and TypeMethodDescriptiondefault voidRetryListener.beforeRetry(RetryPolicy retryPolicy, Retryable<?> retryable) Called before every retry attempt.default voidRetryListener.onRetryFailure(RetryPolicy retryPolicy, Retryable<?> retryable, Throwable throwable) Called every time a retry attempt fails.default voidRetryListener.onRetryPolicyExhaustion(RetryPolicy retryPolicy, Retryable<?> retryable, Throwable throwable) Called if theRetryPolicyis exhausted.default voidRetryListener.onRetrySuccess(RetryPolicy retryPolicy, Retryable<?> retryable, @Nullable Object result) Called after the first successful retry attempt.voidRetryTemplate.setRetryPolicy(RetryPolicy retryPolicy) Set theRetryPolicyto use.Constructors in org.springframework.core.retry with parameters of type RetryPolicyModifierConstructorDescriptionRetryTemplate(RetryPolicy retryPolicy) Create a newRetryTemplatewith the suppliedRetryPolicy. -
Uses of RetryPolicy in org.springframework.core.retry.support
Methods in org.springframework.core.retry.support with parameters of type RetryPolicyModifier and TypeMethodDescriptionvoidCompositeRetryListener.beforeRetry(RetryPolicy retryPolicy, Retryable<?> retryable) voidCompositeRetryListener.onRetryFailure(RetryPolicy retryPolicy, Retryable<?> retryable, Throwable throwable) voidCompositeRetryListener.onRetryPolicyExhaustion(RetryPolicy retryPolicy, Retryable<?> retryable, Throwable throwable) voidCompositeRetryListener.onRetrySuccess(RetryPolicy retryPolicy, Retryable<?> retryable, @Nullable Object result)