[rabbitmq-discuss] Acknowledging multiple messages.

Vlad Alexandru Ionescu vlad at rabbitmq.com
Wed Sep 1 12:05:25 BST 2010


Hi Ritesh,


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.
Perhaps worth mentioning that the order of delivery of messages is 
guaranteed.

There is no way of specifying more than one delivery tag.


Rgds,
Vlad.



On 08/31/2010 12:56 PM, rathi wrote:
> void*basicAck*(long deliveryTag, boolean multiple) throws java.io.IOException
> Acknowledge one or several received messages. Supply the deliveryTag from the|AMQP.Basic.GetOk|  <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>  or|AMQP.Basic.Deliver|  <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>  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
>
>    
>
>
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>    
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20100901/bedc5644/attachment.htm>


More information about the rabbitmq-discuss mailing list