Package org.springframework.retry
Interface RecoveryCallback<T>
- Type Parameters:
T
- the type that is returned from the recovery
public interface RecoveryCallback<T>
Callback for stateful retry after all tries are exhausted.
- Since:
- 1.1
- Author:
- Dave Syer
-
Method Summary
-
Method Details
-
recover
- Parameters:
context
- the current retry context- Returns:
- an Object that can be used to replace the callback result that failed
- Throws:
Exception
- when something goes wrong
-