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.
@FunctionalInterface public static interface ConsumerFlowStrategy.MessageProcessedCallback
Behavior forMessageHandler.Context.processed()
calls.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
processed(MessageHandler.Context messageContext)
Method called whenMessageHandler.Context.processed()
is called.
-
-
-
Method Detail
-
processed
void processed(MessageHandler.Context messageContext)
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
-
-