Interface RabbitTemplate.RecoveryCallback

Enclosing class:
RabbitTemplate
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface RabbitTemplate.RecoveryCallback
Callback to recover a request that has exhausted its retry policy.
Since:
1.0
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable Object
    recover(Throwable lastException)
    Recover the exception that was thrown during the last attempt.
  • Method Details

    • recover

      @Nullable Object recover(Throwable lastException)
      Recover the exception that was thrown during the last attempt.
      Parameters:
      lastException - the exception of the last attempt
      Returns:
      Object that can be used to replace the result RabbitTemplate.execute(ChannelCallback)