public class ImmediateRequeueMessageRecoverer extends Object implements MessageRecoverer
MessageRecoverer
implementation to throw an ImmediateRequeueAmqpException
for subsequent requeuing in the listener container.Constructor and Description |
---|
ImmediateRequeueMessageRecoverer() |
Modifier and Type | Method and Description |
---|---|
void |
recover(Message message,
Throwable cause)
Callback for message that was consumed but failed all retry attempts.
|
protected Log logger
public void recover(Message message, Throwable cause)
MessageRecoverer
recover
in interface MessageRecoverer
message
- the message to recovercause
- the cause of the error