|
Spring AMQP | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.amqp.rabbit.retry.RejectAndDontRequeueRecoverer
public class RejectAndDontRequeueRecoverer
MessageRecover that causes the listener container to reject the message without requeuing. This enables failed messages to be sent to a Dead Letter Exchange/Queue, if the broker is so configured.
Constructor Summary | |
---|---|
RejectAndDontRequeueRecoverer()
|
Method Summary | |
---|---|
void |
recover(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 |
Constructor Detail |
---|
public RejectAndDontRequeueRecoverer()
Method Detail |
---|
public void recover(Message message, java.lang.Throwable cause)
MessageRecoverer
recover
in interface MessageRecoverer
message
- the message to recovercause
- the cause of the error
|
Spring AMQP | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |