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

    Modifier and Type
    Method
    Description
     
  • Method Details

    • recover

      T recover(RetryContext context) throws Exception
      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