org.apache.activemq.broker.region.policy
Class DiscardingDeadLetterStrategy

java.lang.Object
  extended by org.apache.activemq.broker.region.policy.AbstractDeadLetterStrategy
      extended by org.apache.activemq.broker.region.policy.SharedDeadLetterStrategy
          extended by org.apache.activemq.broker.region.policy.DiscardingDeadLetterStrategy
All Implemented Interfaces:
DeadLetterStrategy

public class DiscardingDeadLetterStrategy
extends SharedDeadLetterStrategy

A DeadLetterStrategy where each destination has its own individual DLQ using the subject naming hierarchy.


Field Summary
 
Fields inherited from class org.apache.activemq.broker.region.policy.SharedDeadLetterStrategy
DEFAULT_DEAD_LETTER_QUEUE_NAME
 
Constructor Summary
DiscardingDeadLetterStrategy()
           
 
Method Summary
 boolean isSendToDeadLetterQueue(Message message)
          Allow pluggable strategy for deciding if message should be sent to a dead letter queue for example, you might not want to ignore expired or non-persistent messages
 
Methods inherited from class org.apache.activemq.broker.region.policy.SharedDeadLetterStrategy
getDeadLetterQueue, getDeadLetterQueueFor, isDLQ, setDeadLetterQueue
 
Methods inherited from class org.apache.activemq.broker.region.policy.AbstractDeadLetterStrategy
isEnableAudit, isProcessExpired, isProcessNonPersistent, rollback, setEnableAudit, setProcessExpired, setProcessNonPersistent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiscardingDeadLetterStrategy

public DiscardingDeadLetterStrategy()
Method Detail

isSendToDeadLetterQueue

public boolean isSendToDeadLetterQueue(Message message)
Description copied from interface: DeadLetterStrategy
Allow pluggable strategy for deciding if message should be sent to a dead letter queue for example, you might not want to ignore expired or non-persistent messages

Specified by:
isSendToDeadLetterQueue in interface DeadLetterStrategy
Overrides:
isSendToDeadLetterQueue in class AbstractDeadLetterStrategy
Returns:
true if message should be sent to a dead letter queue


Copyright © 2005–2013 The Apache Software Foundation. All rights reserved.