| Package | Description |
|---|---|
| org.springframework.retry.backoff |
Infrastructure implementations of retry backoff concerns.
|
| org.springframework.retry.interceptor |
Infrastructure implementations of retry aop concerns.
|
| org.springframework.retry.support |
Infrastructure implementations of retry support concerns.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
SleepingBackOffPolicy<T extends SleepingBackOffPolicy<T>>
A interface which can be mixed in by
BackOffPolicys indicating that they sleep
when backing off. |
| Modifier and Type | Class and Description |
|---|---|
class |
ExponentialBackOffPolicy
Implementation of
BackOffPolicy that increases the back off period for each
retry attempt in a given set up to a limit. |
class |
ExponentialRandomBackOffPolicy
Implementation of
ExponentialBackOffPolicy
that chooses a random multiple of the interval that would come from a simple
deterministic exponential. |
class |
FixedBackOffPolicy
Implementation of
BackOffPolicy that pauses for a fixed period of time before
continuing. |
class |
NoBackOffPolicy
Implementation of
BackOffPolicy that performs a no-op and as such all retry
operation in a given set proceed one after the other with no pause. |
class |
StatelessBackOffPolicy
Simple base class for
BackOffPolicy implementations that maintain no state
across invocations. |
class |
UniformRandomBackOffPolicy
Implementation of
BackOffPolicy that pauses for a random period of time before
continuing. |
| Modifier and Type | Method and Description |
|---|---|
BackOffPolicy |
BackOffPolicyBuilder.build()
Builds the
BackOffPolicy with the given parameters. |
static BackOffPolicy |
BackOffPolicyBuilder.newDefaultPolicy()
Creates a new
FixedBackOffPolicy instance with a delay of 1000ms. |
| Modifier and Type | Method and Description |
|---|---|
RetryInterceptorBuilder<T> |
RetryInterceptorBuilder.backOffPolicy(BackOffPolicy policy)
Apply the back off policy.
|
RetryInterceptorBuilder.StatefulRetryInterceptorBuilder |
RetryInterceptorBuilder.StatefulRetryInterceptorBuilder.backOffPolicy(BackOffPolicy policy) |
| Modifier and Type | Method and Description |
|---|---|
RetryTemplateBuilder |
RetryTemplateBuilder.customBackoff(BackOffPolicy backOffPolicy)
You can provide your own
BackOffPolicy via this method. |
void |
RetryTemplate.setBackOffPolicy(BackOffPolicy backOffPolicy)
Setter for
BackOffPolicy. |
Copyright © 2022 SpringSource. All rights reserved.