Class SharedDeadLetterStrategy
- java.lang.Object
-
- org.apache.activemq.broker.region.policy.AbstractDeadLetterStrategy
-
- org.apache.activemq.broker.region.policy.SharedDeadLetterStrategy
-
- All Implemented Interfaces:
DeadLetterStrategy
- Direct Known Subclasses:
DiscardingDeadLetterStrategy
public class SharedDeadLetterStrategy extends AbstractDeadLetterStrategy
A default implementation ofDeadLetterStrategywhich uses a constant destination.
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_DEAD_LETTER_QUEUE_NAME
-
Constructor Summary
Constructors Constructor Description SharedDeadLetterStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ActiveMQDestinationgetDeadLetterQueue()ActiveMQDestinationgetDeadLetterQueueFor(Message message, Subscription subscription)Returns the dead letter queue for the given message and subscription.voidsetDeadLetterQueue(ActiveMQDestination deadLetterQueue)-
Methods inherited from class org.apache.activemq.broker.region.policy.AbstractDeadLetterStrategy
getExpiration, getMaxAuditDepth, getMaxProducersToAudit, isEnableAudit, isProcessExpired, isProcessNonPersistent, isSendToDeadLetterQueue, rollback, setEnableAudit, setExpiration, setMaxAuditDepth, setMaxProducersToAudit, setProcessExpired, setProcessNonPersistent
-
-
-
-
Field Detail
-
DEFAULT_DEAD_LETTER_QUEUE_NAME
public static final String DEFAULT_DEAD_LETTER_QUEUE_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDeadLetterQueueFor
public ActiveMQDestination getDeadLetterQueueFor(Message message, Subscription subscription)
Description copied from interface:DeadLetterStrategyReturns the dead letter queue for the given message and subscription.
-
getDeadLetterQueue
public ActiveMQDestination getDeadLetterQueue()
-
setDeadLetterQueue
public void setDeadLetterQueue(ActiveMQDestination deadLetterQueue)
-
-