[rabbitmq-discuss] Number of consumers on a queue

Marek Majkowski majek04 at gmail.com
Tue Aug 9 14:37:50 BST 2011


On Tue, Aug 9, 2011 at 14:11, Andreas Lackner <alackner at geomix.at> wrote:
> I'd like to know if there is a way to get the number of consumers that are
> currently bound to a queue.
> I am using the .NET client.

Check out the return value of `Queue.declare`:
   http://www.rabbitmq.com/amqp-0-9-1-reference.html#exchange.declare-ok

It returns message count and number of consumers bound to a queue.

Cheers,
   Marek


More information about the rabbitmq-discuss mailing list