Sets the number of message credits the receiver grants and replenishes automatically as messages are delivered.
To manage credit manually, you can instead set prefetch to 0 before opening the consumer and then explicitly call
{@link #flow(int)} as needed to manually grant credit.
@param messages
the message prefetch
@return the receiver
Sets the number of message credits the receiver grants and replenishes automatically as messages are delivered.
To manage credit manually, you can instead set prefetch to 0 before opening the consumer and then explicitly call {@link #flow(int)} as needed to manually grant credit.
@param messages the message prefetch @return the receiver