Class DiscardingDeadLetterStrategy
java.lang.Object
org.apache.activemq.broker.region.policy.AbstractDeadLetterStrategy
org.apache.activemq.broker.region.policy.SharedDeadLetterStrategy
org.apache.activemq.broker.region.policy.DiscardingDeadLetterStrategy
- All Implemented Interfaces:
DeadLetterStrategy
A
DeadLetterStrategy where each destination has its own individual
DLQ using the subject naming hierarchy.-
Field Summary
Fields inherited from class org.apache.activemq.broker.region.policy.SharedDeadLetterStrategy
DEFAULT_DEAD_LETTER_QUEUE_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisSendToDeadLetterQueue(org.apache.activemq.command.Message message) Allow pluggable strategy for deciding if message should be sent to a dead letter queue for example, you might not want to ignore expired or non-persistent messagesMethods inherited from class org.apache.activemq.broker.region.policy.SharedDeadLetterStrategy
getDeadLetterQueue, getDeadLetterQueueFor, getMaxAuditDepth, getMaxProducersToAudit, lookupActiveMQMessageAudit, setDeadLetterQueue, setMaxAuditDepth, setMaxProducersToAuditMethods inherited from class org.apache.activemq.broker.region.policy.AbstractDeadLetterStrategy
getExpiration, isEnableAudit, isProcessExpired, isProcessNonPersistent, rollback, setEnableAudit, setExpiration, setProcessExpired, setProcessNonPersistent
-
Constructor Details
-
DiscardingDeadLetterStrategy
public DiscardingDeadLetterStrategy()
-
-
Method Details
-
isSendToDeadLetterQueue
public boolean isSendToDeadLetterQueue(org.apache.activemq.command.Message message) Description copied from interface:DeadLetterStrategyAllow pluggable strategy for deciding if message should be sent to a dead letter queue for example, you might not want to ignore expired or non-persistent messages- Specified by:
isSendToDeadLetterQueuein interfaceDeadLetterStrategy- Overrides:
isSendToDeadLetterQueuein classAbstractDeadLetterStrategy- Returns:
- true if message should be sent to a dead letter queue
-