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
BackOffPolicywas interrupted, most likely by anInterruptedExceptionduring a call toThread.sleep(long).Strategy interface to control back off between attempts in a singleretry operation.Fluent API for creating aBackOffPolicybased on given attributes.Implementation ofBackOffPolicythat increases the back off period for each retry attempt in a given set up to a limit.Implementation ofExponentialBackOffPolicythat chooses a random multiple of the interval that would come from a simple deterministic exponential.Implementation ofBackOffPolicythat pauses for a fixed period of time before continuing.Implementation ofBackOffPolicythat 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 byBackOffPolicys indicating that they sleep when backing off.Simple base class forBackOffPolicyimplementations that maintain no state across invocations.SimpleSleeperimplementation that just blocks the current Thread with sleep period.Implementation ofBackOffPolicythat pauses for a random period of time before continuing.
ThreadWaitSleeper