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
A DeadLetterStrategy where each destination has its own individual DLQ using the subject naming hierarchy.
  • 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: DeadLetterStrategy
      Returns 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:
      getMaxProducersToAudit in class AbstractDeadLetterStrategy
    • setMaxProducersToAudit

      public void setMaxProducersToAudit(int maxProducersToAudit)
      Specified by:
      setMaxProducersToAudit in class AbstractDeadLetterStrategy
    • setMaxAuditDepth

      public void setMaxAuditDepth(int maxAuditDepth)
      Specified by:
      setMaxAuditDepth in class AbstractDeadLetterStrategy
    • getMaxAuditDepth

      public int getMaxAuditDepth()
      Specified by:
      getMaxAuditDepth in class AbstractDeadLetterStrategy
    • 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:
      lookupActiveMQMessageAudit in class AbstractDeadLetterStrategy