/*
* sending to dlq is called as part of a poison ack processing, before the message is acknowledged and removed
* by the destination so a delay is vital to avoid resending before it has been consumed
*/
private void validatePolicyDelay(long limit) {
final ActiveMQDestination matchAll = new AnyDestination(new ActiveMQDestination[]{new ActiveMQQueue(">"), new ActiveMQTopic(">")});
for (Object entry : redeliveryPolicyMap.get(matchAll)) {
RedeliveryPolicy redeliveryPolicy = (RedeliveryPolicy) entry;
validateLimit(limit, redeliveryPolicy);
}
RedeliveryPolicy defaultEntry = redeliveryPolicyMap.getDefaultEntry();