<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">2013/12/13 Ranjith Venkatesan <span dir="ltr"><<a href="mailto:ranjith.v@zohocorp.com" target="_blank">ranjith.v@zohocorp.com</a>></span><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div id=":2cx" style="overflow:hidden">I am new to RabbitMq. I am experimenting rabbitmq for past two days. In my<br>
case, I want to fetch 100 messages from queue. It can be accomplished with<br>
help of *channel.basicQos(100);*. </div></blockquote><div><br></div><div>Note that basic.qos only has effect on consumers using basic.consume, not basic.get.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div id=":2cx" style="overflow:hidden">But how to acknowledge for those bulk 100<br>
messages?<br>
<br>
<br>
channel.basicAck(*???*, true);<br>
<br>
My question is how to get deliveryTag for multiple msgs ?</div></blockquote></div><div class="gmail_extra"><br></div>See description of the multiple argument:<br><br><div><a href="http://www.rabbitmq.com/releases/rabbitmq-java-client/current-javadoc/">http://www.rabbitmq.com/releases/rabbitmq-java-client/current-javadoc/</a><br>
</div>-- <br>MK<br><br><a href="http://github.com/michaelklishin" target="_blank">http://github.com/michaelklishin</a><br><a href="http://twitter.com/michaelklishin" target="_blank">http://twitter.com/michaelklishin</a><br>
</div></div>