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 ofDeadLetterStrategy
which uses a constant destination.
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_DEAD_LETTER_QUEUE_NAME
-
Constructor Summary
Constructors Constructor Description SharedDeadLetterStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
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:DeadLetterStrategy
Returns the dead letter queue for the given message and subscription.
-
getDeadLetterQueue
public ActiveMQDestination getDeadLetterQueue()
-
setDeadLetterQueue
public void setDeadLetterQueue(ActiveMQDestination deadLetterQueue)
-
-