use of org.apache.qpid.server.message.MessageInstance in project qpid-broker-j by apache.
the class AMQChannel method isDeliveredTooManyTimes.
private boolean isDeliveredTooManyTimes(final long deliveryTag) {
final MessageInstance queueEntry = _unacknowledgedMessageMap.get(deliveryTag);
if (queueEntry != null) {
final int maximumDeliveryCount = queueEntry.getMaximumDeliveryCount();
final int numDeliveries = queueEntry.getDeliveryCount();
return maximumDeliveryCount != 0 && numDeliveries >= maximumDeliveryCount;
}
return false;
}
Aggregations