Package com.rabbitmq.stream
Interface ConsumerFlowStrategy.Context
-
- Enclosing interface:
- ConsumerFlowStrategy
public static interface ConsumerFlowStrategy.ContextChunk context.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcredits(int credits)Provide credits for the subscription.longmessageCount()The number of messages in the chunk.
-
-
-
Method Detail
-
credits
void credits(int credits)
Provide credits for the subscription.ConsumerFlowStrategyimplementation should always provide 1 credit a given chunk.- Parameters:
credits- the number of credits provided, usually 1
-
messageCount
long messageCount()
The number of messages in the chunk.- Returns:
- number of messages in the chunk
-
-