[rabbitmq-discuss] whether you grab a message per sec or anything else?

thomas 1517427523 at qq.com
Tue Apr 1 06:23:19 BST 2014


pls check my code below:


String message = client.getNextMessage();
if (message != null && !message.equals("")) {
	client.sendMessage(imqRec.handler(message));
}





If I use while(true) loop continuously monitor RPC queue, it would be very resource intensive, whether you grab a message per sec or anything else?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20140401/d0a2bbc2/attachment.html>


More information about the rabbitmq-discuss mailing list