Interface RecoveryCallback<T extends @Nullable Object>

Type Parameters:
T - the type that is returned from the recovery
All Known Implementing Classes:
ErrorMessageSendingRecoverer

public interface RecoveryCallback<T extends @Nullable Object>
Error handler-like strategy to provide fallback based on the AttributeAccessor.
Since:
7.0
Author:
Artem Bilan
  • Method Details

    • recover

      T recover(AttributeAccessor context, Throwable cause)
      Parameters:
      context - the context for failure
      cause - the cause of the failure
      Returns:
      an Object that can be used to replace the callback result that failed