qos abstract method
Setup the prefetchSize
and prefetchCount
QoS parameters. The value
of the global
flag is interpreted differently between the AMQP 0-9-1
spec and RabbitMQ.
For RabbitMQ, if global
is true, then prefetchCount
is shared between
all consumers of this channel. Otherwise, prefetchCount
is applied
separately to each new consumer of the channel.
According to the AMQP spec, if global
is true, then prefetchCount
is
shared between all consumers on the connection. Otherwise,
prefetchCount
is shared between all consumers of this channel.
Returns a Future<Channel> with the affected channel once the server confirms the updated QoS settings.
Implementation
Future<Channel> qos(int? prefetchSize, int? prefetchCount,
{bool global = true});