Uses of Interface
org.springframework.retry.RecoveryCallback
Package
Description
Infrastructure implementations of retry concerns.
Infrastructure implementations of retry support concerns.
-
Uses of RecoveryCallback in org.springframework.retry
Modifier and TypeMethodDescription<T,
E extends Throwable>
TRetryOperations.execute
(RetryCallback<T, E> retryCallback, RecoveryCallback<T> recoveryCallback) Execute the suppliedRetryCallback
with a fallback on exhausted retry to theRecoveryCallback
.<T,
E extends Throwable>
TRetryOperations.execute
(RetryCallback<T, E> retryCallback, RecoveryCallback<T> recoveryCallback, RetryState retryState) A stateful retry with a recovery path. -
Uses of RecoveryCallback in org.springframework.retry.support
Modifier and TypeMethodDescriptionprotected <T,
E extends Throwable>
TRetryTemplate.doExecute
(RetryCallback<T, E> retryCallback, RecoveryCallback<T> recoveryCallback, RetryState state) Execute the callback once if the policy dictates that we can, otherwise execute the recovery callback.final <T,
E extends Throwable>
TRetryTemplate.execute
(RetryCallback<T, E> retryCallback, RecoveryCallback<T> recoveryCallback) Keep executing the callback until it either succeeds or the policy dictates that we stop, in which case the recovery callback will be executed.final <T,
E extends Throwable>
TRetryTemplate.execute
(RetryCallback<T, E> retryCallback, RecoveryCallback<T> recoveryCallback, RetryState retryState) Execute the callback once if the policy dictates that we can, re-throwing any exception encountered so that clients can re-present the same task later.protected <T> T
RetryTemplate.handleRetryExhausted
(RecoveryCallback<T> recoveryCallback, RetryContext context, RetryState state) Actions to take after final attempt has failed.