Package org.apache.activemq.plugin
Class DiscardingDLQBroker
java.lang.Object
org.apache.activemq.broker.BrokerFilter
org.apache.activemq.plugin.DiscardingDLQBroker
-
Field Summary
Fields inherited from class org.apache.activemq.broker.BrokerFilter
next
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionPattern[]
int
boolean
boolean
boolean
boolean
boolean
sendToDeadLetterQueue
(ConnectionContext ctx, org.apache.activemq.broker.region.MessageReference msgRef, Subscription subscription, Throwable poisonCause) A message needs to go the a DLQvoid
setDestFilter
(Pattern[] destFilter) void
setDropAll
(boolean dropAll) void
setDropTemporaryQueues
(boolean dropTemporaryQueues) void
setDropTemporaryTopics
(boolean dropTemporaryTopics) void
setReportInterval
(int reportInterval) Methods inherited from class org.apache.activemq.broker.BrokerFilter
acknowledge, addBroker, addConnection, addConsumer, addDestination, addDestinationInfo, addProducer, addSession, beginTransaction, brokerServiceStarted, commitTransaction, fastProducer, forgetTransaction, gc, getAdaptor, getAdminConnectionContext, getBrokerId, getBrokerName, getBrokerSequenceId, getBrokerService, getClients, getDestinationMap, getDestinationMap, getDestinations, getDestinations, getDurableDestinations, getExecutor, getNext, getPeerBrokerInfos, getPreparedTransactions, getRoot, getScheduler, getTempDataStore, getVmConnectorURI, isExpired, isFaultTolerantConfiguration, isFull, isStopped, messageConsumed, messageDelivered, messageDiscarded, messageDispatched, messageExpired, messagePull, networkBridgeStarted, networkBridgeStopped, nowMasterBroker, postProcessDispatch, prepareTransaction, preProcessDispatch, processConsumerControl, processDispatchNotification, reapplyInterceptor, removeBroker, removeConnection, removeConsumer, removeDestination, removeDestinationInfo, removeProducer, removeSession, removeSubscription, rollbackTransaction, send, setAdminConnectionContext, slowConsumer, start, stop, virtualDestinationAdded, virtualDestinationRemoved
-
Field Details
-
log
public static org.slf4j.Logger log
-
-
Constructor Details
-
DiscardingDLQBroker
-
-
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 interfaceBroker
- Overrides:
sendToDeadLetterQueue
in classBrokerFilter
poisonCause
- reason for dlq submission, may be null- Returns:
- true if Message was placed in a DLQ false if discarded.
-
matches
-
setDropTemporaryTopics
public void setDropTemporaryTopics(boolean dropTemporaryTopics) -
setDropTemporaryQueues
public void setDropTemporaryQueues(boolean dropTemporaryQueues) -
setDropAll
public void setDropAll(boolean dropAll) -
setDestFilter
-
setReportInterval
public void setReportInterval(int reportInterval) -
isDropTemporaryTopics
public boolean isDropTemporaryTopics() -
isDropTemporaryQueues
public boolean isDropTemporaryQueues() -
isDropAll
public boolean isDropAll() -
getDestFilter
-
getReportInterval
public int getReportInterval()
-