Support DLQ - the listener must throw an AmqpRejectAndDontRequeueException
and this will send a basic.reject with requeue false (instead of the
default true).
There is an issue with Rabbit DLQ handling with durable queues so,
currently, this only works when dead-lettering messages sent to
non-durable queues.
DLQ Polishing - Add Unit Tests
DLQ Polish Tests
AMQP-221 Add Option for Default Requeue Behavior
Previously, the default requeue behavior was true, with the
ability to override for a specific message by throwing an
AmqpRejectAndDontRequeueException.
However, as posted in a PR review, it is desirable to set
the default behavior using a property on the listener
container.
Now, by setting requeueRejected to false (default=true),
the default becomes false.
When true, the default can still be overriden for a specific
message as described above.