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
public class DiscardingDeadLetterStrategy extends SharedDeadLetterStrategy
ADeadLetterStrategy
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 Constructor Description DiscardingDeadLetterStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isSendToDeadLetterQueue(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 messages-
Methods inherited from class org.apache.activemq.broker.region.policy.SharedDeadLetterStrategy
getDeadLetterQueue, getDeadLetterQueueFor, setDeadLetterQueue
-
Methods inherited from class org.apache.activemq.broker.region.policy.AbstractDeadLetterStrategy
getExpiration, getMaxAuditDepth, getMaxProducersToAudit, isEnableAudit, isProcessExpired, isProcessNonPersistent, rollback, setEnableAudit, setExpiration, setMaxAuditDepth, setMaxProducersToAudit, setProcessExpired, setProcessNonPersistent
-
-
-
-
Method Detail
-
isSendToDeadLetterQueue
public boolean isSendToDeadLetterQueue(Message message)
Description copied from interface:DeadLetterStrategy
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 messages- Specified by:
isSendToDeadLetterQueue
in interfaceDeadLetterStrategy
- Overrides:
isSendToDeadLetterQueue
in classAbstractDeadLetterStrategy
- Returns:
- true if message should be sent to a dead letter queue
-
-