org.apache.activemq.broker.region.policy
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
A DeadLetterStrategy where each destination has its own individual
DLQ using the subject naming hierarchy.
|
Method Summary |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DiscardingDeadLetterStrategy
public DiscardingDeadLetterStrategy()
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 interface DeadLetterStrategy- Overrides:
isSendToDeadLetterQueue in class AbstractDeadLetterStrategy
- Returns:
- true if message should be sent to a dead letter queue
Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.