接口 RetryCallback<T,E extends Throwable>
- 类型参数:
T
- the type of object returned by the callbackE
- the type of exception it declares may be thrown
- 所有已知实现类:
MethodInvocationRetryCallback
,RetrySimulator.FailingRetryCallback
,StatefulRetryOperationsInterceptor.StatefulMethodInvocationRetryCallback
public interface RetryCallback<T,E extends Throwable>
Callback interface for an operation that can be retried using a
RetryOperations
.- 从以下版本开始:
- 4.0
- 作者:
- Rob Harrop, Dave Syer
-
方法概要
-
方法详细资料
-
doWithRetry
Execute an operation with retry semantics. Operations should generally be idempotent, but implementations may choose to implement compensation semantics when an operation is retried.- 参数:
context
- the current retry context.- 返回:
- the result of the successful operation.
- 抛出:
E
- of type E if processing fails
-