Uses of Class
org.springframework.core.retry.RetryPolicy.Builder
Packages that use RetryPolicy.Builder
-
Uses of RetryPolicy.Builder in org.springframework.core.retry
Methods in org.springframework.core.retry that return RetryPolicy.BuilderModifier and TypeMethodDescriptionSpecify theBackOffstrategy to use.static RetryPolicy.BuilderRetryPolicy.builder()Create aRetryPolicy.Builderto configure aRetryPolicywith common configuration options.Specify the base delay after the initial invocation.final RetryPolicy.BuilderSpecify the types of exceptions for which theRetryPolicyshould not retry a failed operation.RetryPolicy.Builder.excludes(Collection<Class<? extends Throwable>> types) Specify the types of exceptions for which theRetryPolicyshould not retry a failed operation.final RetryPolicy.BuilderSpecify the types of exceptions for which theRetryPolicyshould retry a failed operation.RetryPolicy.Builder.includes(Collection<Class<? extends Throwable>> types) Specify the types of exceptions for which theRetryPolicyshould retry a failed operation.Specify a jitter value for the base retry attempt, randomly subtracted or added to the calculated delay, resulting in a value betweendelay - jitteranddelay + jitterbut never below the base delay or above the max delay.RetryPolicy.Builder.maxAttempts(long maxAttempts) Specify the maximum number of retry attempts.Specify the maximum delay for any retry attempt, limiting how far jitter and the multiplier can increase the delay.RetryPolicy.Builder.multiplier(double multiplier) Specify a customPredicatethat theRetryPolicywill use to determine whether to retry a failed operation based on a givenThrowable.