Package com.rabbitmq.stream
Interface ConsumerFlowStrategy.MessageProcessedCallback
- Enclosing interface:
ConsumerFlowStrategy
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Behavior for
MessageHandler.Context.processed()
calls.-
Method Summary
Modifier and TypeMethodDescriptionvoid
processed
(MessageHandler.Context messageContext) Method called whenMessageHandler.Context.processed()
is called.
-
Method Details
-
processed
Method called whenMessageHandler.Context.processed()
is called.There is one instance of this class for a given chunk and it is called for the
processed()
calls of the message of this chunk.Implementations can count messages and call
ConsumerFlowStrategy.Context.credits(int)
when appropriate.Note calls to
MessageHandler.Context.processed()
are not idempotent: an application can call the method several times for the same message and implementations must deal with these multiple calls if they impact their logic.- Parameters:
messageContext
- context of the message
-