_logger.debug("No messages in _queue to reject");
}
}
while (messages.hasNext())
{
UnprocessedMessage message = (UnprocessedMessage) messages.next();
if (rejectAllConsumers || (message.getConsumerTag() == consumerTag))
{
if (_logger.isDebugEnabled())
{
_logger.debug("Removing message(" + System.identityHashCode(message) + ") from _queue DT:"
+ message.getDeliveryTag());
}
messages.remove();
rejectMessage(message, requeue);
if (_logger.isDebugEnabled())
{
_logger.debug("Rejected the message(" + message.toString() + ") for consumer :" + consumerTag);
}
}
}
}