Interface StreamMessageRecoverer
- All Superinterfaces:
MessageRecoverer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Implementations of this interface can handle failed messages after retries are
exhausted.
- Since:
- 2.4.5
- Author:
- Gary Russell
-
Method Summary
Modifier and TypeMethodDescriptionvoid
recover
(com.rabbitmq.stream.Message message, com.rabbitmq.stream.MessageHandler.Context context, Throwable cause) Callback for message that was consumed but failed all retry attempts.default void
Callback for a message that was consumed but failed all retry attempts.
-
Method Details
-
recover
Description copied from interface:MessageRecoverer
Callback for a message that was consumed but failed all retry attempts.- Specified by:
recover
in interfaceMessageRecoverer
- Parameters:
message
- the message to recovercause
- the cause of the error
-
recover
void recover(com.rabbitmq.stream.Message message, com.rabbitmq.stream.MessageHandler.Context context, Throwable cause) Callback for message that was consumed but failed all retry attempts.- Parameters:
message
- the message to recover.context
- the context.cause
- the cause of the error.
-