|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.activemq.service.DeadLetterPolicy
Determines how messages are stored in a dead letter queue
| Field Summary | |
static java.lang.String |
DEAD_LETTER_PREFIX
Prefix used by dead letter queues |
| Constructor Summary | |
DeadLetterPolicy()
Default constructor |
|
DeadLetterPolicy(Broker broker)
Construct a dead letter policy |
|
| Method Summary | |
Broker |
getBroker()
|
java.lang.String |
getDeadLetterName()
|
java.lang.String |
getDeadLetterNameFromDestination(ActiveMQDestination destination)
Get the name of the DLQ from the destination provided |
java.lang.String |
getDeadLetterPrefix()
|
boolean |
isDeadLetterEnabled()
|
boolean |
isDeadLetterPerDestinationName()
|
boolean |
isNoTopicConsumerEnabled()
|
boolean |
isStoreNonPersistentMessages()
|
void |
sendToDeadLetter(ActiveMQMessage message)
Send a message to a dead letter queue |
void |
setBroker(Broker broker)
|
void |
setDeadLetterEnabled(boolean deadLetterEnabled)
|
void |
setDeadLetterName(java.lang.String deadLetterName)
|
void |
setDeadLetterPerDestinationName(boolean deadLetterPerDestinationName)
|
void |
setDeadLetterPrefix(java.lang.String deadLetterPrefix)
|
void |
setNoTopicConsumerEnabled(boolean noTopicConsumerEnabled)
|
void |
setStoreNonPersistentMessages(boolean storeNonPersistentMessages)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String DEAD_LETTER_PREFIX
| Constructor Detail |
public DeadLetterPolicy(Broker broker)
broker - public DeadLetterPolicy()
| Method Detail |
public Broker getBroker()
public void setBroker(Broker broker)
broker - The broker to set.public boolean isDeadLetterEnabled()
public void setDeadLetterEnabled(boolean deadLetterEnabled)
deadLetterEnabled - The deadLetterEnabled to set.public boolean isDeadLetterPerDestinationName()
public void setDeadLetterPerDestinationName(boolean deadLetterPerDestinationName)
deadLetterPerDestinationName - The deadLetterPerDestinationName to set.public java.lang.String getDeadLetterName()
public void setDeadLetterName(java.lang.String deadLetterName)
deadLetterName - The deadLetterName to set.public java.lang.String getDeadLetterPrefix()
public void setDeadLetterPrefix(java.lang.String deadLetterPrefix)
deadLetterPrefix - The deadLetterPrefix to set.public boolean isStoreNonPersistentMessages()
public void setStoreNonPersistentMessages(boolean storeNonPersistentMessages)
storeNonPersistentMessages - The storeNonPersistentMessages to set.public boolean isNoTopicConsumerEnabled()
public void setNoTopicConsumerEnabled(boolean noTopicConsumerEnabled)
noTopicConsumerEnabled - The noTopicConsumerEnabled to set.public java.lang.String getDeadLetterNameFromDestination(ActiveMQDestination destination)
destination -
public void sendToDeadLetter(ActiveMQMessage message)
throws javax.jms.JMSException
message -
javax.jms.JMSException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||