[rabbitmq-discuss] To know when a queue is empty from a Java client
jon at jbrisbin.com
Thu Aug 26 14:25:55 BST 2010
The "official" folks should correct me here, but when you declare an existing queue, you get an object back that gives you the message count:
I don't think there's a way to poll for the message count on a long-running process, though...
On Aug 26, 2010, at 8:16 AM, Florence Chabanois wrote:
> From a Java client we need to know when a queue is empty.
> Is there a way to know it via the Java api (or to know the number
> of messages in a queue).
> We would rather have another way than calling "rabbitmqctl list_queues"
> via Runtime.exec()
> Thanks for any help,
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rabbitmq-discuss