Uses of Class
org.springframework.retry.backoff.BackOffPolicyBuilder
Packages that use BackOffPolicyBuilder
Package
Description
Infrastructure implementations of retry backoff concerns.
-
Uses of BackOffPolicyBuilder in org.springframework.retry.backoff
Methods in org.springframework.retry.backoff that return BackOffPolicyBuilderModifier 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 BackOffPolicyBuilderBackOffPolicyBuilder.newBuilder()Creates a newBackOffPolicyBuilderinstance.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.TheSleeperinstance to be used to back off.