Got it. <br><br>Thanks,<br>ritesh rathi<br><br><div class="gmail_quote">On Wed, Sep 1, 2010 at 4:35 PM, Vlad Alexandru Ionescu <span dir="ltr"><<a href="mailto:vlad@rabbitmq.com">vlad@rabbitmq.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div bgcolor="#ffffff" text="#000000">
Hi Ritesh,<br>
<br>
<br>
The way it works is that if you set the multiple flag to true, you tell
the broker that you acknowledge all messages /up to and including/ the
message you specify with the delivery tag.<br>
Perhaps worth mentioning that the order of delivery of messages is
guaranteed.<br>
<br>
There is no way of specifying more than one delivery tag.<br>
<br>
<br>
Rgds,<br>
Vlad.<div><div></div><div class="h5"><br>
<br>
<br>
<br>
On 08/31/2010 12:56 PM, rathi wrote:
</div></div><blockquote type="cite"><div><div></div><div class="h5">
<pre>void <b>basicAck</b>(long deliveryTag, boolean multiple) throws java.io.IOException
Acknowledge one or several received messages. Supply the deliveryTag from the <a href="http://www.rabbitmq.com/releases/rabbitmq-java-client/v1.5.1/rabbitmq-java-client-javadoc-1.5.1/com/rabbitmq/client/AMQP.Basic.GetOk.html" title="interface in com.rabbitmq.client" target="_blank"><code>AMQP.Basic.GetOk</code></a> or <a href="http://www.rabbitmq.com/releases/rabbitmq-java-client/v1.5.1/rabbitmq-java-client-javadoc-1.5.1/com/rabbitmq/client/AMQP.Basic.Deliver.html" title="interface in com.rabbitmq.client" target="_blank"><code>AMQP.Basic.Deliver</code></a> method containing the received message being acknowledged.
The above method allows to acknowledge multiple messages based on the deliveryTag. But how do we set the same deliveryTag for multiple messages. Don't know
if my understanding here is right. Please correct me if I am wrong.
thanks & regards,
ritesh rathi
</pre>
</div></div><pre><fieldset></fieldset>
_______________________________________________
rabbitmq-discuss mailing list
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com" target="_blank">rabbitmq-discuss@lists.rabbitmq.com</a>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a>
</pre>
</blockquote>
</div>
</blockquote></div><br>