[rabbitmq-discuss] How check for existing queue consumer

cw storm cwstorm at gmail.com
Wed Feb 12 17:30:20 GMT 2014


What about the getConsumerTag() method?


On Wed, Feb 12, 2014 at 12:21 PM, Simon MacMullen <simon at rabbitmq.com>wrote:

> On 12/02/14 17:20, cw storm wrote:
>
>> Besides the number of active queue consumer, can I get the actual name
>> or value that's in the consumer tag?
>>
>
> Only via the mgmt API:
>
> $ curl -i -u guest:guest http://localhost:15672/api/
> queues/%2f/test?columns=name,consumer_details.consumer_tag
>
> HTTP/1.1 200 OK
> Server: MochiWeb/1.1 WebMachine/1.10.0 (never breaks eye contact)
> Date: Wed, 12 Feb 2014 17:21:09 GMT
> Content-Type: application/json
> Content-Length: 87
> Cache-Control: no-cache
>
> {"consumer_details":[{"consumer_tag":"amq.ctag-shNahmeVJHaF-kS-OwgirA"}],"
> name":"test"}
>
>
> Cheers, Simon
>
> --
> Simon MacMullen
> RabbitMQ, Pivotal
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20140212/73532e03/attachment.html>


More information about the rabbitmq-discuss mailing list