[rabbitmq-discuss] Unack Messages
Emile Joubert
emile at rabbitmq.com
Wed Feb 27 09:39:24 GMT 2013
Hi,
On 27/02/13 05:38, chetan dev wrote:
> currently if there are messages unacknowledged they remain
> in unacknowledged state .
> So How do i get Messages in Unacknowledged state to ready state
> automatically ?
The client that consumed those messages could issue the basic.recover
method to return all unacknowledged messages to the queue, taking care
to do so on the same channel that the messages were consumed on:
http://www.rabbitmq.com/amqp-0-9-1-quickref.html#basic.recover
Or The client could use basic.reject to return individual messages back
to the queue:
http://www.rabbitmq.com/amqp-0-9-1-quickref.html#basic.reject
The client could also use basic.nack to send a range of messages or
individual back to the queue:
http://www.rabbitmq.com/nack.html
http://www.rabbitmq.com/amqp-0-9-1-quickref.html#basic.nack
Another way of returning all unacknowledged messages to the queue is to
close the channel.
-Emile
More information about the rabbitmq-discuss
mailing list