[rabbitmq-discuss] How check for existing queue consumer

Michael Klishin michael.s.klishin at gmail.com
Wed Feb 12 17:41:52 GMT 2014


2014-02-12 21:25 GMT+04:00 cw storm <cwstorm at gmail.com>:

> I suppose i can do "String consumerTag =
> channel.queueDeclarePassive(strQueueName).getConsumerTag();"
>

Channel#queueDeclarePassive returns AMQP.Queue.DeclareOk which does not have
a consumer tag field. In fact, it can't: there can be multiple consumers
per queue.


-- 
MK

http://github.com/michaelklishin
http://twitter.com/michaelklishin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20140212/29a9d431/attachment.html>


More information about the rabbitmq-discuss mailing list