Class ImmediateRequeueMessageRecoverer

  • All Implemented Interfaces:
    MessageRecoverer

    public class ImmediateRequeueMessageRecoverer
    extends java.lang.Object
    implements MessageRecoverer
    The MessageRecoverer implementation to throw an ImmediateRequeueAmqpException for subsequent requeuing in the listener container.
    Since:
    2.1
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.apache.commons.logging.Log logger  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void recover​(org.springframework.amqp.core.Message message, java.lang.Throwable cause)
      Callback for message that was consumed but failed all retry attempts.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • logger

        protected org.apache.commons.logging.Log logger
    • Constructor Detail

      • ImmediateRequeueMessageRecoverer

        public ImmediateRequeueMessageRecoverer()
    • Method Detail

      • recover

        public void recover​(org.springframework.amqp.core.Message message,
                            java.lang.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