public abstract class AbstractDeadLetterStrategy extends Object implements DeadLetterStrategy
| Constructor and Description |
|---|
AbstractDeadLetterStrategy() |
| Modifier and Type | Method and Description |
|---|---|
long |
getExpiration() |
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 |
setExpiration(long expiration)
The expiration value to use on messages sent to the DLQ, default 0
|
void |
setProcessExpired(boolean processExpired) |
void |
setProcessNonPersistent(boolean processNonPersistent) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDeadLetterQueueForpublic AbstractDeadLetterStrategy()
public 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)
public long getExpiration()
getExpiration in interface DeadLetterStrategypublic void setExpiration(long expiration)
DeadLetterStrategysetExpiration in interface DeadLetterStrategyCopyright © 2005–2015 FuseSource, Corp.. All rights reserved.