Class ImmediateRequeueMessageRecoverer

java.lang.Object
org.springframework.amqp.rabbit.retry.ImmediateRequeueMessageRecoverer
All Implemented Interfaces:
MessageRecoverer

public class ImmediateRequeueMessageRecoverer extends Object implements MessageRecoverer
The MessageRecoverer implementation to throw an ImmediateRequeueAmqpException for subsequent requeuing in the listener container.
Since:
2.1
Author:
Artem Bilan, Gary Russell
  • Field Details

    • logger

      protected Log logger
  • Constructor Details

    • ImmediateRequeueMessageRecoverer

      public ImmediateRequeueMessageRecoverer()
  • Method Details

    • recover

      public void recover(Message message, Throwable cause)
      Description copied from interface: MessageRecoverer
      Callback for message that was consumed but failed all retry attempts.
      Specified by:
      recover in interface MessageRecoverer
      Parameters:
      message - the message to recover
      cause - the cause of the error