[rabbitmq-discuss] Acknowledging multiple messages.

rathi riteshrathi at gmail.com
Wed Sep 1 12:38:21 BST 2010


Got it.

Thanks,
ritesh rathi

On Wed, Sep 1, 2010 at 4:35 PM, Vlad Alexandru Ionescu <vlad at rabbitmq.com>wrote:

>  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 listrabbitmq-discuss at lists.rabbitmq.comhttps://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/7c6da4ba/attachment.htm>


More information about the rabbitmq-discuss mailing list