public class DiscardingDeadLetterStrategy extends SharedDeadLetterStrategy
DeadLetterStrategy
where each destination has its own individual
DLQ using the subject naming hierarchy.DEFAULT_DEAD_LETTER_QUEUE_NAME
Constructor and Description |
---|
DiscardingDeadLetterStrategy() |
Modifier and Type | Method and 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
|
getDeadLetterQueue, getDeadLetterQueueFor, setDeadLetterQueue
getExpiration, isEnableAudit, isProcessExpired, isProcessNonPersistent, rollback, setEnableAudit, setExpiration, setProcessExpired, setProcessNonPersistent
public DiscardingDeadLetterStrategy()
public boolean isSendToDeadLetterQueue(Message message)
DeadLetterStrategy
isSendToDeadLetterQueue
in interface DeadLetterStrategy
isSendToDeadLetterQueue
in class AbstractDeadLetterStrategy
Copyright © 2005–2018 The Apache Software Foundation. All rights reserved.