Uses of Interface
org.springframework.retry.RetryCallback
Package
Description
Infrastructure implementations of retry concerns.
Infrastructure implementations of retry aop concerns.
Infrastructure implementations of retry interceptor concerns.
Infrastructure implementations of retry support concerns.
-
Uses of RetryCallback in org.springframework.retry
Modifier and TypeMethodDescriptiondefault <T,
E extends Throwable>
voidRetryListener.close
(RetryContext context, RetryCallback<T, E> callback, Throwable throwable) Called after the final attempt (successful or not).<T,
E extends Throwable>
TRetryOperations.execute
(RetryCallback<T, E> retryCallback) Execute the suppliedRetryCallback
with the configured retry semantics.<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.<T,
E extends Throwable>
TRetryOperations.execute
(RetryCallback<T, E> retryCallback, RetryState retryState) A simple stateful retry.default <T,
E extends Throwable>
voidRetryListener.onError
(RetryContext context, RetryCallback<T, E> callback, Throwable throwable) Called after every unsuccessful attempt at a retry.default <T,
E extends Throwable>
voidRetryListener.onSuccess
(RetryContext context, RetryCallback<T, E> callback, T result) Called after a successful attempt; allow the listener to throw a new exception to cause a retry (according to the retry policy), based on the result returned by thedoWithRetry(RetryContext)
default <T,
E extends Throwable>
booleanRetryListener.open
(RetryContext context, RetryCallback<T, E> callback) Called before the first attempt in a retry. -
Uses of RetryCallback in org.springframework.retry.interceptor
Modifier and TypeClassDescriptionclass
MethodInvocationRetryCallback<T,
E extends Throwable> Callback class for a Spring AOP reflective `MethodInvocation` that can be retried using aRetryOperations
. -
Uses of RetryCallback in org.springframework.retry.listener
Modifier and TypeMethodDescription<T,
E extends Throwable>
voidMethodInvocationRetryListenerSupport.close
(RetryContext context, RetryCallback<T, E> callback, Throwable throwable) <T,
E extends Throwable>
voidRetryListenerSupport.close
(RetryContext context, RetryCallback<T, E> callback, Throwable throwable) Deprecated, for removal: This API element is subject to removal in a future version.<T,
E extends Throwable>
voidMethodInvocationRetryListenerSupport.onError
(RetryContext context, RetryCallback<T, E> callback, Throwable throwable) <T,
E extends Throwable>
voidRetryListenerSupport.onError
(RetryContext context, RetryCallback<T, E> callback, Throwable throwable) Deprecated, for removal: This API element is subject to removal in a future version.<T,
E extends Throwable>
voidMethodInvocationRetryListenerSupport.onSuccess
(RetryContext context, RetryCallback<T, E> callback, T result) <T,
E extends Throwable>
booleanMethodInvocationRetryListenerSupport.open
(RetryContext context, RetryCallback<T, E> callback) <T,
E extends Throwable>
booleanRetryListenerSupport.open
(RetryContext context, RetryCallback<T, E> callback) Deprecated, for removal: This API element is subject to removal in a future version. -
Uses of RetryCallback in org.springframework.retry.stats
Modifier and TypeMethodDescription<T,
E extends Throwable>
voidStatisticsListener.close
(RetryContext context, RetryCallback<T, E> callback, Throwable throwable) <T,
E extends Throwable>
voidStatisticsListener.onError
(RetryContext context, RetryCallback<T, E> callback, Throwable throwable) -
Uses of RetryCallback in org.springframework.retry.support
Modifier and TypeMethodDescription<T,
E extends Throwable>
voidMetricsRetryListener.close
(RetryContext context, RetryCallback<T, E> callback, Throwable throwable) protected <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) Keep executing the callback until it either succeeds or the policy dictates that we stop, in which case the most recent exception thrown by the callback will be rethrown.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.final <T,
E extends Throwable>
TRetryTemplate.execute
(RetryCallback<T, E> retryCallback, 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.<T,
E extends Throwable>
booleanMetricsRetryListener.open
(RetryContext context, RetryCallback<T, E> callback)