[rabbitmq-discuss] how to get consumer number

Matthias Radestock matthias at rabbitmq.com
Sun Aug 12 14:53:24 BST 2012


On 12/08/12 14:08, Bai Shuwei wrote:
>      I use the rabbitmq-c now. I send my message to the MyQueue, and i
> want how to get the consumers number on the queue, but i cannot find the
> related routines. Could somebody to help me to get the consumers number,
> thanks very much!

The reply to queue.declare contains a consumer-count. See 
http://www.rabbitmq.com/amqp-0-9-1-reference.html#queue.declare-ok. I 
have no idea what the C code for accessing that would look like, but it 
hopefully is pretty obvious.

Matthias.


More information about the rabbitmq-discuss mailing list