public abstract class AbstractDeadLetterStrategy extends Object implements DeadLetterStrategy
| Constructor and Description |
|---|
AbstractDeadLetterStrategy() |
| Modifier and Type | Method and Description |
|---|---|
long |
getExpiration() |
int |
getMaxAuditDepth() |
int |
getMaxProducersToAudit() |
boolean |
isEnableAudit() |
boolean |
isProcessExpired() |
boolean |
isProcessNonPersistent() |
boolean |
isSendToDeadLetterQueue(org.apache.activemq.command.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(org.apache.activemq.command.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 |
setMaxAuditDepth(int maxAuditDepth) |
void |
setMaxProducersToAudit(int maxProducersToAudit) |
void |
setProcessExpired(boolean processExpired) |
void |
setProcessNonPersistent(boolean processNonPersistent) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDeadLetterQueueForpublic AbstractDeadLetterStrategy()
public void rollback(org.apache.activemq.command.Message message)
DeadLetterStrategyrollback in interface DeadLetterStrategypublic boolean isSendToDeadLetterQueue(org.apache.activemq.command.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 DeadLetterStrategypublic int getMaxProducersToAudit()
public void setMaxProducersToAudit(int maxProducersToAudit)
public void setMaxAuditDepth(int maxAuditDepth)
public int getMaxAuditDepth()
Copyright © 2005–2020 The Apache Software Foundation. All rights reserved.