| Package | Description |
|---|---|
| org.springframework.retry.backoff |
Infrastructure implementations of retry backoff concerns.
|
| Modifier and Type | Method and Description |
|---|---|
BackOffPolicyBuilder |
BackOffPolicyBuilder.delay(long delay)
A canonical backoff period.
|
BackOffPolicyBuilder |
BackOffPolicyBuilder.maxDelay(long maxDelay)
The maximum wait in milliseconds between retries.
|
BackOffPolicyBuilder |
BackOffPolicyBuilder.multiplier(double multiplier)
If positive, then used as a multiplier for generating the next delay for backoff.
|
static BackOffPolicyBuilder |
BackOffPolicyBuilder.newBuilder()
Creates a new
BackOffPolicyBuilder instance. |
BackOffPolicyBuilder |
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 |
BackOffPolicyBuilder.sleeper(Sleeper sleeper)
The
Sleeper instance to be used to back off. |
Copyright © 2022 SpringSource. All rights reserved.