{
QueueEntry message = entry.getValue();
long deliveryTag = entry.getKey();
//Amend the delivery counter as the client hasn't seen these messages yet.
message.decrementDeliveryCount();
AMQQueue queue = message.getQueue();
// Without any details from the client about what has been processed we have to mark
// all messages in the unacked map as redelivered.