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

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

public class SharedDeadLetterStrategy
extends AbstractDeadLetterStrategy

A default implementation of DeadLetterStrategy which uses a constant destination.


Field Summary
static String DEFAULT_DEAD_LETTER_QUEUE_NAME
           
 
Constructor Summary
SharedDeadLetterStrategy()
           
 
Method Summary
 ActiveMQDestination getDeadLetterQueue()
           
 ActiveMQDestination getDeadLetterQueueFor(Message message, Subscription subscription)
          Returns the dead letter queue for the given message and subscription.
 void setDeadLetterQueue(ActiveMQDestination deadLetterQueue)
           
 
Methods inherited from class org.apache.activemq.broker.region.policy.AbstractDeadLetterStrategy
isEnableAudit, isProcessExpired, isProcessNonPersistent, isSendToDeadLetterQueue, setEnableAudit, setProcessExpired, setProcessNonPersistent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_DEAD_LETTER_QUEUE_NAME

public static final String DEFAULT_DEAD_LETTER_QUEUE_NAME
See Also:
Constant Field Values
Constructor Detail

SharedDeadLetterStrategy

public SharedDeadLetterStrategy()
Method Detail

getDeadLetterQueueFor

public ActiveMQDestination getDeadLetterQueueFor(Message message,
                                                 Subscription subscription)
Description copied from interface: DeadLetterStrategy
Returns the dead letter queue for the given message and subscription.


getDeadLetterQueue

public ActiveMQDestination getDeadLetterQueue()

setDeadLetterQueue

public void setDeadLetterQueue(ActiveMQDestination deadLetterQueue)


Copyright © 2005-2012 The Apache Software Foundation. All Rights Reserved.