doWithRetry
public java.lang.Object doWithRetry(RetryContext context)
throws java.lang.Exception
Execute an operation with retry semantics. Operations should generally be
idempotent, but implementations may choose to implement compensation
semantics when an operation is retried.
- Specified by:
doWithRetry in interface RetryCallback<java.lang.Object,java.lang.Exception>
- Parameters:
context - the current retry context.
- Returns:
- the result of the successful operation.
- Throws:
java.lang.Exception - if processing fails