Uses of Class
org.springframework.retry.backoff.BackOffPolicyBuilder
Package
Description
Infrastructure implementations of retry backoff concerns.
-
Uses of BackOffPolicyBuilder in org.springframework.retry.backoff
Modifier and TypeMethodDescriptionBackOffPolicyBuilder.delay
(long delay) A canonical backoff period.BackOffPolicyBuilder.delaySupplier
(Supplier<Long> delaySupplier) Set a supplier for the delay.BackOffPolicyBuilder.maxDelay
(long maxDelay) The maximum wait in milliseconds between retries.BackOffPolicyBuilder.maxDelaySupplier
(Supplier<Long> maxDelaySupplier) Set a supplier for the max delay.BackOffPolicyBuilder.multiplier
(double multiplier) If positive, then used as a multiplier for generating the next delay for backoff.BackOffPolicyBuilder.multiplierSupplier
(Supplier<Double> multiplierSupplier) Set a supplier for the multiplier.static BackOffPolicyBuilder
BackOffPolicyBuilder.newBuilder()
Creates a newBackOffPolicyBuilder
instance.BackOffPolicyBuilder.random
(boolean random) In the exponential case (multiplier
> 0) set this to true to have the backoff delays randomized, so that the maximum delay is multiplier times the previous delay and the distribution is uniform between the two values.BackOffPolicyBuilder.randomSupplier
(Supplier<Boolean> randomSupplier) Set a supplier for the random.TheSleeper
instance to be used to back off.