Package org.springframework.amqp
Class AmqpRejectAndDontRequeueException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.springframework.amqp.AmqpException
-
- org.springframework.amqp.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
-
-
Constructor Summary
Constructors Constructor Description AmqpRejectAndDontRequeueException(java.lang.String message)
Construct an instance with the supplied argument.AmqpRejectAndDontRequeueException(java.lang.String message, boolean rejectManual, java.lang.Throwable cause)
Construct an instance with the supplied arguments.AmqpRejectAndDontRequeueException(java.lang.String message, java.lang.Throwable cause)
Construct an instance with the supplied arguments.AmqpRejectAndDontRequeueException(java.lang.Throwable cause)
Construct an instance with the supplied argument.
-
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.
-
-
-
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
-
-