Class IndividualDeadLetterStrategy
- java.lang.Object
-
- org.apache.activemq.broker.region.policy.AbstractDeadLetterStrategy
-
- org.apache.activemq.broker.region.policy.IndividualDeadLetterStrategy
-
- All Implemented Interfaces:
DeadLetterStrategy
public class IndividualDeadLetterStrategy extends AbstractDeadLetterStrategy
ADeadLetterStrategywhere each destination has its own individual DLQ using the subject naming hierarchy.
-
-
Constructor Summary
Constructors Constructor Description IndividualDeadLetterStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.apache.activemq.command.ActiveMQDestinationcreateDestination(org.apache.activemq.command.Message message, String prefix, String suffix, boolean useQueue, Subscription subscription)org.apache.activemq.command.ActiveMQDestinationgetDeadLetterQueueFor(org.apache.activemq.command.Message message, Subscription subscription)Returns the dead letter queue for the given message and subscription.intgetMaxAuditDepth()intgetMaxDestinationsToAudit()intgetMaxProducersToAudit()StringgetQueuePrefix()StringgetQueueSuffix()StringgetTopicPrefix()StringgetTopicSuffix()booleanisDestinationPerDurableSubscriber()booleanisUseQueueForQueueMessages()booleanisUseQueueForTopicMessages()protected org.apache.activemq.ActiveMQMessageAuditlookupActiveMQMessageAudit(org.apache.activemq.command.Message message, boolean rollback)voidmaxDestinationsToAudit(int maxDestinationsToAudit)voidsetDestinationPerDurableSubscriber(boolean destinationPerDurableSubscriber)sets whether durable topic subscriptions are to get individual dead letter destinations.voidsetMaxAuditDepth(int maxAuditDepth)voidsetMaxProducersToAudit(int maxProducersToAudit)voidsetQueuePrefix(String queuePrefix)Sets the prefix to use for all dead letter queues for queue messagesvoidsetQueueSuffix(String queueSuffix)Sets the suffix to use for all dead letter queues for queue messagesvoidsetTopicPrefix(String topicPrefix)Sets the prefix to use for all dead letter queues for topic messagesvoidsetTopicSuffix(String topicSuffix)Sets the suffix to use for all dead letter queues for topic messagesvoidsetUseQueueForQueueMessages(boolean useQueueForQueueMessages)Sets whether a queue or topic should be used for queue messages sent to a DLQ.voidsetUseQueueForTopicMessages(boolean useQueueForTopicMessages)Sets whether a queue or topic should be used for topic messages sent to a DLQ.-
Methods inherited from class org.apache.activemq.broker.region.policy.AbstractDeadLetterStrategy
getExpiration, isEnableAudit, isProcessExpired, isProcessNonPersistent, isSendToDeadLetterQueue, rollback, setEnableAudit, setExpiration, setProcessExpired, setProcessNonPersistent
-
-
-
-
Method Detail
-
getDeadLetterQueueFor
public org.apache.activemq.command.ActiveMQDestination getDeadLetterQueueFor(org.apache.activemq.command.Message message, Subscription subscription)Description copied from interface:DeadLetterStrategyReturns the dead letter queue for the given message and subscription.
-
getMaxDestinationsToAudit
public int getMaxDestinationsToAudit()
-
maxDestinationsToAudit
public void maxDestinationsToAudit(int maxDestinationsToAudit)
-
getQueuePrefix
public String getQueuePrefix()
-
setQueuePrefix
public void setQueuePrefix(String queuePrefix)
Sets the prefix to use for all dead letter queues for queue messages
-
getTopicPrefix
public String getTopicPrefix()
-
setTopicPrefix
public void setTopicPrefix(String topicPrefix)
Sets the prefix to use for all dead letter queues for topic messages
-
getQueueSuffix
public String getQueueSuffix()
-
setQueueSuffix
public void setQueueSuffix(String queueSuffix)
Sets the suffix to use for all dead letter queues for queue messages
-
getTopicSuffix
public String getTopicSuffix()
-
setTopicSuffix
public void setTopicSuffix(String topicSuffix)
Sets the suffix to use for all dead letter queues for topic messages
-
isUseQueueForQueueMessages
public boolean isUseQueueForQueueMessages()
-
setUseQueueForQueueMessages
public void setUseQueueForQueueMessages(boolean useQueueForQueueMessages)
Sets whether a queue or topic should be used for queue messages sent to a DLQ. The default is to use a Queue
-
isUseQueueForTopicMessages
public boolean isUseQueueForTopicMessages()
-
setUseQueueForTopicMessages
public void setUseQueueForTopicMessages(boolean useQueueForTopicMessages)
Sets whether a queue or topic should be used for topic messages sent to a DLQ. The default is to use a Queue
-
isDestinationPerDurableSubscriber
public boolean isDestinationPerDurableSubscriber()
-
setDestinationPerDurableSubscriber
public void setDestinationPerDurableSubscriber(boolean destinationPerDurableSubscriber)
sets whether durable topic subscriptions are to get individual dead letter destinations. When true, the DLQ is of the form 'topicPrefix.clientId:subscriptionName' The default is false.- Parameters:
destinationPerDurableSubscriber-
-
getMaxProducersToAudit
public int getMaxProducersToAudit()
- Specified by:
getMaxProducersToAuditin classAbstractDeadLetterStrategy
-
setMaxProducersToAudit
public void setMaxProducersToAudit(int maxProducersToAudit)
- Specified by:
setMaxProducersToAuditin classAbstractDeadLetterStrategy
-
setMaxAuditDepth
public void setMaxAuditDepth(int maxAuditDepth)
- Specified by:
setMaxAuditDepthin classAbstractDeadLetterStrategy
-
getMaxAuditDepth
public int getMaxAuditDepth()
- Specified by:
getMaxAuditDepthin classAbstractDeadLetterStrategy
-
createDestination
protected org.apache.activemq.command.ActiveMQDestination createDestination(org.apache.activemq.command.Message message, String prefix, String suffix, boolean useQueue, Subscription subscription)
-
lookupActiveMQMessageAudit
protected org.apache.activemq.ActiveMQMessageAudit lookupActiveMQMessageAudit(org.apache.activemq.command.Message message, boolean rollback)- Specified by:
lookupActiveMQMessageAuditin classAbstractDeadLetterStrategy
-
-