Class DiscardingDLQBroker

java.lang.Object
org.apache.activemq.broker.BrokerFilter
org.apache.activemq.plugin.DiscardingDLQBroker
All Implemented Interfaces:
Broker, Region, org.apache.activemq.Service

public class DiscardingDLQBroker extends BrokerFilter
  • Field Details

    • log

      public static org.slf4j.Logger log
  • Constructor Details

    • DiscardingDLQBroker

      public DiscardingDLQBroker(Broker next)
  • Method Details

    • sendToDeadLetterQueue

      public boolean sendToDeadLetterQueue(ConnectionContext ctx, org.apache.activemq.broker.region.MessageReference msgRef, Subscription subscription, Throwable poisonCause)
      Description copied from interface: Broker
      A message needs to go the a DLQ
      Specified by:
      sendToDeadLetterQueue in interface Broker
      Overrides:
      sendToDeadLetterQueue in class BrokerFilter
      poisonCause - reason for dlq submission, may be null
      Returns:
      true if Message was placed in a DLQ false if discarded.
    • matches

      public boolean matches(String destName)
    • setDropTemporaryTopics

      public void setDropTemporaryTopics(boolean dropTemporaryTopics)
    • setDropTemporaryQueues

      public void setDropTemporaryQueues(boolean dropTemporaryQueues)
    • setDropAll

      public void setDropAll(boolean dropAll)
    • setDestFilter

      public void setDestFilter(Pattern[] destFilter)
    • setReportInterval

      public void setReportInterval(int reportInterval)
    • isDropTemporaryTopics

      public boolean isDropTemporaryTopics()
    • isDropTemporaryQueues

      public boolean isDropTemporaryQueues()
    • isDropAll

      public boolean isDropAll()
    • getDestFilter

      public Pattern[] getDestFilter()
    • getReportInterval

      public int getReportInterval()