Uses of Class
org.springframework.retry.interceptor.MethodInvocationRetryCallback
Package
Description
Infrastructure implementations of retry interceptor concerns.
-
Uses of MethodInvocationRetryCallback in org.springframework.retry.listener
Modifier and TypeMethodDescriptionprotected <T,
E extends Throwable>
voidMethodInvocationRetryListenerSupport.doClose
(RetryContext context, MethodInvocationRetryCallback<T, E> callback, Throwable throwable) Called after the final attempt (successful or not).protected <T,
E extends Throwable>
voidMethodInvocationRetryListenerSupport.doOnError
(RetryContext context, MethodInvocationRetryCallback<T, E> callback, Throwable throwable) Called after every unsuccessful attempt at a retry.protected <T,
E extends Throwable>
voidMethodInvocationRetryListenerSupport.doOnSuccess
(RetryContext context, MethodInvocationRetryCallback<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 theRetryCallback.doWithRetry(RetryContext)
protected <T,
E extends Throwable>
booleanMethodInvocationRetryListenerSupport.doOpen
(RetryContext context, MethodInvocationRetryCallback<T, E> callback) Called before the first attempt in a retry.