if (ext != null)
{
Long acked=(Long) ext.get("ack");
if (acked != null)
{
ArrayIdIterator it=_unackedQueue.idIterator();
MessageImpl queuedMessage=null;
while (it.hasNext())
{
queuedMessage=(MessageImpl)it.next();
long messageBatchId=it.associatedId();
if (acked >= messageBatchId)
{
queuedMessage.decRef();
it.remove();
}
}
}
}