Package org.springframework.retry.backoff
package org.springframework.retry.backoff
Infrastructure implementations of retry backoff concerns.
-
ClassDescriptionException class signifiying that an attempt to back off using a
BackOffPolicy
was interrupted, most likely by anInterruptedException
during a call toThread.sleep(long)
.Strategy interface to control back off between attempts in a singleretry operation
.Fluent API for creating aBackOffPolicy
based on given attributes.Implementation ofBackOffPolicy
that increases the back off period for each retry attempt in a given set up to a limit.Implementation ofExponentialBackOffPolicy
that chooses a random multiple of the interval that would come from a simple deterministic exponential.Implementation ofBackOffPolicy
that pauses for a fixed period of time before continuing.Implementation ofBackOffPolicy
that performs a no-op and as such all retry operation in a given set proceed one after the other with no pause.Deprecated.Strategy interface for backoff policies to delegate the pausing of execution.SleepingBackOffPolicy<T extends SleepingBackOffPolicy<T>>A interface which can be mixed in byBackOffPolicy
s indicating that they sleep when backing off.Simple base class forBackOffPolicy
implementations that maintain no state across invocations.SimpleSleeper
implementation that just blocks the current Thread with sleep period.Implementation ofBackOffPolicy
that pauses for a random period of time before continuing.
ThreadWaitSleeper