|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.activemq.service.DeadLetterPolicy
Determines how messages are stored in a dead letter queue
Field Summary | |
static 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()
|
String |
getDeadLetterName()
|
String |
getDeadLetterNameFromDestination(ActiveMQDestination destination)
Get the name of the DLQ from the destination provided |
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(String deadLetterName)
|
void |
setDeadLetterPerDestinationName(boolean deadLetterPerDestinationName)
|
void |
setDeadLetterPrefix(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 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 String getDeadLetterName()
public void setDeadLetterName(String deadLetterName)
deadLetterName
- The deadLetterName to set.public String getDeadLetterPrefix()
public void setDeadLetterPrefix(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 String getDeadLetterNameFromDestination(ActiveMQDestination destination)
destination
-
public void sendToDeadLetter(ActiveMQMessage message) throws JMSException
message
-
JMSException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |