[rabbitmq-discuss] A question when using rabbitmq Thanks

Michael Klishin mklishin at gopivotal.com
Mon Aug 5 09:15:32 BST 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

yby538 escribió:
> I have declared a queuqe in memory,so how can i get the size of the 
> queue anytime?Is there some APIs we can use?(We have to use this
> method in my project if it is possible)how can i check whether the
> queue is empty or not?

There are two ways: use basic.declare with passive = true and see
message count on the response (basic.queue-ok), or use HTTP API [1].

1.
http://hg.rabbitmq.com/rabbitmq-management/raw-file/fbdc912fa1e5/priv/www/api/index.html
- -- 
MK
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJR/18kAAoJEFAGXKZn4yVAQLMH+gJdYx64PfGC4Hn8JTa5fH5g
wpF5jTQGZAQKm3HQpR2qavefbUqe2SPzZ/VNxf7aY0cbhHbAlPWnUp71xZvHX2IJ
MlaY0RGCl1dr71ZeXago7AVequILFI2J+tdO6sR2rEC2vKhV5jLmt3bj/8gDnBuq
McAyeEdGYZgrbFO/vwJZEJFREmmDTpinMa5axktiEY17dILwgGNw3cZl8T5KrP+z
3Yqd/gHjYNSU+elorJ5nLkmGevZR4TFH0SD9zwrn7LBTLaRtEe8T0++ALm+Y2eD9
rlxLwM81v6gsizlfcfbd0Bci3uGKl5XatxjVHR96o/ti2aWJhL2H9dFBgwInurg=
=EOMG
-----END PGP SIGNATURE-----


More information about the rabbitmq-discuss mailing list