[rabbitmq-discuss] How can get the queue depth?
rob at rabbitmq.com
Fri Mar 4 11:32:00 GMT 2011
Channel c = createChannel();
AMQP.Queue.DeclareOK ok = c.queueDeclarePassive("my.queue");
int messageCount = ok.getMessageCount();
On 04/03/11 06:33, sam_mis wrote:
> could you explain more detailed(idea,code) for using
> Michael Bridgen-3 wrote:
>>> I am using Java Client for Rabbitmq. I want know that how many messages
>>> 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
>> rabbitmq-discuss mailing list
>> rabbitmq-discuss at lists.rabbitmq.com
More information about the rabbitmq-discuss