Class AmqpRejectAndDontRequeueException

  • All Implemented Interfaces:
    java.io.Serializable

    public class AmqpRejectAndDontRequeueException
    extends AmqpException
    Exception for listener implementations used to indicate the basic.reject will be sent with requeue=false in order to enable features such as DLQ.
    Since:
    1.0.1
    Author:
    Gary Russell
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isRejectManual()
      True if the container should reject the message, even with manual acks.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • AmqpRejectAndDontRequeueException

        public AmqpRejectAndDontRequeueException​(java.lang.String message)
        Construct an instance with the supplied argument.
        Parameters:
        message - A message describing the problem.
      • AmqpRejectAndDontRequeueException

        public AmqpRejectAndDontRequeueException​(java.lang.Throwable cause)
        Construct an instance with the supplied argument.
        Parameters:
        cause - the cause.
      • AmqpRejectAndDontRequeueException

        public AmqpRejectAndDontRequeueException​(java.lang.String message,
                                                 java.lang.Throwable cause)
        Construct an instance with the supplied arguments.
        Parameters:
        message - A message describing the problem.
        cause - the cause.
      • AmqpRejectAndDontRequeueException

        public AmqpRejectAndDontRequeueException​(@Nullable
                                                 java.lang.String message,
                                                 boolean rejectManual,
                                                 @Nullable
                                                 java.lang.Throwable cause)
        Construct an instance with the supplied arguments.
        Parameters:
        message - A message describing the problem.
        rejectManual - true to reject the message, even with Manual Acks if this is the top-level exception (e.g. thrown by an error handler).
        cause - the cause.
        Since:
        2.1.9
    • Method Detail

      • isRejectManual

        public boolean isRejectManual()
        True if the container should reject the message, even with manual acks.
        Returns:
        true to reject.