public class RejectAndDontRequeueRecoverer extends Object implements MessageRecoverer
Constructor and Description |
---|
RejectAndDontRequeueRecoverer()
Construct an instance with the default exception message.
|
RejectAndDontRequeueRecoverer(String message)
Construct an instance with the provided exception message.
|
RejectAndDontRequeueRecoverer(Supplier<String> messageSupplier)
Construct an instance with the provided exception message supplier.
|
Modifier and Type | Method and Description |
---|---|
void |
recover(Message message,
Throwable cause)
Callback for message that was consumed but failed all retry attempts.
|
protected final Log logger
public RejectAndDontRequeueRecoverer()
public RejectAndDontRequeueRecoverer(String message)
message
- the message.public void recover(Message message, Throwable cause)
MessageRecoverer
recover
in interface MessageRecoverer
message
- the message to recovercause
- the cause of the error