Class ConsumerFlowStrategy.MessageCountConsumerFlowStrategy

java.lang.Object
com.rabbitmq.stream.ConsumerFlowStrategy.MessageCountConsumerFlowStrategy
All Implemented Interfaces:
ConsumerFlowStrategy
Enclosing interface:
ConsumerFlowStrategy

public static class ConsumerFlowStrategy.MessageCountConsumerFlowStrategy extends Object implements ConsumerFlowStrategy
Strategy that provides the specified number of initial credits and a credit when the specified ratio of the chunk messages are processed.

Make sure to call MessageHandler.Context.processed() on every message when using this strategy, otherwise the broker may stop sending messages to the consumer.