Class IndividualDeadLetterStrategy
java.lang.Object
org.apache.activemq.broker.region.policy.AbstractDeadLetterStrategy
org.apache.activemq.broker.region.policy.IndividualDeadLetterStrategy
- All Implemented Interfaces:
DeadLetterStrategy
A
DeadLetterStrategy where each destination has its own individual
DLQ using the subject naming hierarchy.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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.intintintbooleanbooleanbooleanprotected 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
-
Constructor Details
-
IndividualDeadLetterStrategy
public IndividualDeadLetterStrategy()
-
-
Method Details
-
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
-
setQueuePrefix
Sets the prefix to use for all dead letter queues for queue messages -
getTopicPrefix
-
setTopicPrefix
Sets the prefix to use for all dead letter queues for topic messages -
getQueueSuffix
-
setQueueSuffix
Sets the suffix to use for all dead letter queues for queue messages -
getTopicSuffix
-
setTopicSuffix
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
-