public abstract class AbstractDeadLetterStrategy extends java.lang.Object implements DeadLetterStrategy
| Constructor and Description |
|---|
AbstractDeadLetterStrategy() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isEnableAudit() |
boolean |
isProcessExpired() |
boolean |
isProcessNonPersistent() |
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
|
void |
rollback(Message message)
Allows for a Message that was already processed by a DLQ to be rolled back in case
of a move or a retry of that message, otherwise the Message would be considered a
duplicate if this strategy is doing Message Auditing.
|
void |
setEnableAudit(boolean enableAudit) |
void |
setProcessExpired(boolean processExpired) |
void |
setProcessNonPersistent(boolean processNonPersistent) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDeadLetterQueueFor, isDLQpublic void rollback(Message message)
DeadLetterStrategyrollback in interface DeadLetterStrategypublic boolean isSendToDeadLetterQueue(Message message)
DeadLetterStrategyisSendToDeadLetterQueue in interface DeadLetterStrategypublic boolean isProcessExpired()
isProcessExpired in interface DeadLetterStrategypublic void setProcessExpired(boolean processExpired)
setProcessExpired in interface DeadLetterStrategyprocessExpired - the processExpired to setpublic boolean isProcessNonPersistent()
isProcessNonPersistent in interface DeadLetterStrategypublic void setProcessNonPersistent(boolean processNonPersistent)
setProcessNonPersistent in interface DeadLetterStrategyprocessNonPersistent - the processNonPersistent to setpublic boolean isEnableAudit()
public void setEnableAudit(boolean enableAudit)
Copyright © 2005-2014 Red Hat, Inc.. All Rights Reserved.