[rabbitmq-discuss] How can get the queue depth?

sam_mis sameek at arosys.com
Fri Mar 4 06:33:04 GMT 2011


could you explain more detailed(idea,code) for using
Channel.queueDeclarePassive
.

Thanks


Michael Bridgen-3 wrote:
> 
>> I am using Java Client for Rabbitmq. I want know that how many messages
>> are
>> in the queue(total no. of message remaining in the queue) without reading
>> the message of the queue.
> 
> Using a passive declare (Channel.queueDeclarePassive in the Java client) 
> will give you the queue depth in the reply.
> 
> If you want to sample it often, it may be better to use the management 
> plugin.
> 
> Michael.
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
> 
> 

-- 
View this message in context: http://old.nabble.com/How-can-get-the-queue-depth--tp31056187p31065279.html
Sent from the RabbitMQ mailing list archive at Nabble.com.



More information about the rabbitmq-discuss mailing list