@FunctionalInterface public interface MessageBatchRecoverer extends MessageRecoverer
Modifier and Type | Method and Description |
---|---|
void |
recover(List<Message> messages,
Throwable cause)
Callback for message batch that was consumed but failed all retry attempts.
|
default void |
recover(Message message,
Throwable cause)
Callback for message that was consumed but failed all retry attempts.
|
default void recover(Message message, Throwable cause)
MessageRecoverer
recover
in interface MessageRecoverer
message
- the message to recovercause
- the cause of the error