|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface QueueViewMBean
Method Summary | |
---|---|
int |
copyMatchingMessagesTo(String selector,
String destinationName)
Copies the messages matching the given selector |
int |
copyMatchingMessagesTo(String selector,
String destinationName,
int maximumMessages)
Copies the messages matching the given selector up to the maximum number of matched messages |
boolean |
copyMessageTo(String messageId,
String destinationName)
Copies a given message to another destination. |
CompositeData |
getMessage(String messageId)
Retrieve a message from the destination's queue. |
int |
moveMatchingMessagesTo(String selector,
String destinationName)
Moves the messages matching the given selector |
int |
moveMatchingMessagesTo(String selector,
String destinationName,
int maximumMessages)
Moves the messages matching the given selector up to the maximum number of matched messages |
boolean |
moveMessageTo(String messageId,
String destinationName)
Moves the message to another destination. |
void |
purge()
Removes all of the messages in the queue. |
int |
removeMatchingMessages(String selector)
Removes the messages matching the given selector |
int |
removeMatchingMessages(String selector,
int maximumMessages)
Removes the messages matching the given selector up to the maximum number of matched messages |
boolean |
removeMessage(String messageId)
Removes a message from the queue. |
Methods inherited from interface org.apache.activemq.broker.jmx.DestinationViewMBean |
---|
browse, browse, browseAsTable, browseAsTable, browseMessages, browseMessages, getConsumerCount, getDequeueCount, getDispatchCount, getEnqueueCount, getMemoryLimit, getMemoryPercentageUsed, getName, getQueueSize, resetStatistics, sendTextMessage, sendTextMessage, setMemoryLimit |
Method Detail |
---|
CompositeData getMessage(String messageId) throws OpenDataException
messageId
- the message id of the message to retrieve
OpenDataException
boolean removeMessage(String messageId) throws Exception
messageId
-
Exception
int removeMatchingMessages(String selector) throws Exception
Exception
int removeMatchingMessages(String selector, int maximumMessages) throws Exception
Exception
void purge()
boolean copyMessageTo(String messageId, String destinationName) throws Exception
messageId
- destinationName
-
Exception
int copyMatchingMessagesTo(String selector, String destinationName) throws Exception
Exception
int copyMatchingMessagesTo(String selector, String destinationName, int maximumMessages) throws Exception
Exception
boolean moveMessageTo(String messageId, String destinationName) throws Exception
messageId
- destinationName
-
Exception
int moveMatchingMessagesTo(String selector, String destinationName) throws Exception
Exception
int moveMatchingMessagesTo(String selector, String destinationName, int maximumMessages) throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |