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
Author:
Mark Pollack, Mark Fisher, Dave Syer, Gary Russell, Artem Bilan, Ernest Sadykov, Mark Norkin, Mohammad Hewedy, Alexey Platonov, Leonardo Ferreira, Ngoc Nhan, Jeongjun Min, Stephane Nicoll
  • 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 from the last attempt
      Returns:
      Object that can be used to replace the result RabbitTemplate.execute(ChannelCallback)