|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DeadLetterStrategy
A strategy for choosing which destination is used for dead letter queue messages.
| Method Summary | |
|---|---|
ActiveMQDestination |
getDeadLetterQueueFor(Message message,
Subscription subscription)
Returns the dead letter queue for the given message and subscription. |
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 |
setProcessExpired(boolean processExpired)
|
void |
setProcessNonPersistent(boolean processNonPersistent)
|
| Method Detail |
|---|
boolean isSendToDeadLetterQueue(Message message)
message -
ActiveMQDestination getDeadLetterQueueFor(Message message,
Subscription subscription)
boolean isProcessExpired()
void setProcessExpired(boolean processExpired)
processExpired - the processExpired to setboolean isProcessNonPersistent()
void setProcessNonPersistent(boolean processNonPersistent)
processNonPersistent - the processNonPersistent to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||