public class QueueView extends DestinationView implements QueueViewMBean
broker, destination| Constructor and Description |
|---|
QueueView(ManagedRegionBroker broker,
Queue destination) |
| Modifier and Type | Method and Description |
|---|---|
int |
copyMatchingMessagesTo(java.lang.String selector,
java.lang.String destinationName)
Copies the messages matching the given selector
|
int |
copyMatchingMessagesTo(java.lang.String selector,
java.lang.String destinationName,
int maximumMessages)
Copies the messages matching the given selector up to the maximum number
of matched messages
|
boolean |
copyMessageTo(java.lang.String messageId,
java.lang.String destinationName)
Copies a given message to another destination.
|
int |
cursorSize() |
boolean |
doesCursorHaveMessagesBuffered() |
boolean |
doesCursorHaveSpace() |
long |
getCursorMemoryUsage() |
int |
getCursorPercentUsage() |
javax.management.openmbean.CompositeData |
getMessage(java.lang.String messageId)
Retrieve a message from the destination's queue.
|
boolean |
isCacheEnabled() |
boolean |
isCursorFull() |
int |
moveMatchingMessagesTo(java.lang.String selector,
java.lang.String destinationName)
Moves the messages matching the given selector
|
int |
moveMatchingMessagesTo(java.lang.String selector,
java.lang.String destinationName,
int maximumMessages)
Moves the messages matching the given selector up to the maximum number
of matched messages
|
boolean |
moveMessageTo(java.lang.String messageId,
java.lang.String destinationName)
Moves the message to another destination.
|
void |
purge()
Removes all of the messages in the queue.
|
int |
removeMatchingMessages(java.lang.String selector)
Removes the messages matching the given selector
|
int |
removeMatchingMessages(java.lang.String selector,
int maximumMessages)
Removes the messages matching the given selector up to the maximum number
of matched messages
|
boolean |
removeMessage(java.lang.String messageId)
Removes a message from the queue.
|
boolean |
retryMessage(java.lang.String messageId)
Moves a message back to its original destination
|
browse, browse, browseAsTable, browseAsTable, browseMessages, browseMessages, gc, getAverageEnqueueTime, getBlockedProducerWarningInterval, getConsumerCount, getDequeueCount, getDispatchCount, getEnqueueCount, getExpiredCount, getInFlightCount, getMaxAuditDepth, getMaxEnqueueTime, getMaxPageSize, getMaxProducersToAudit, getMemoryLimit, getMemoryPercentUsage, getMemoryUsageByteCount, getMemoryUsagePortion, getMessagesCached, getMinEnqueueTime, getName, getOptions, getProducerCount, getQueueSize, getSlowConsumerStrategy, getSubscriptions, isAlwaysRetroactive, isEnableAudit, isPrioritizedMessages, isProducerFlowControl, isUseCache, resetStatistics, sendTextMessage, sendTextMessage, sendTextMessage, sendTextMessage, setAlwaysRetroactive, setBlockedProducerWarningInterval, setEnableAudit, setMaxAuditDepth, setMaxPageSize, setMaxProducersToAudit, setMemoryLimit, setMemoryUsagePortion, setProducerFlowControl, setUseCacheclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbrowse, browse, browseAsTable, browseAsTable, browseMessages, browseMessages, getAverageEnqueueTime, getBlockedProducerWarningInterval, getConsumerCount, getDequeueCount, getDispatchCount, getEnqueueCount, getExpiredCount, getInFlightCount, getMaxAuditDepth, getMaxEnqueueTime, getMaxPageSize, getMaxProducersToAudit, getMemoryLimit, getMemoryPercentUsage, getMemoryUsageByteCount, getMemoryUsagePortion, getMinEnqueueTime, getName, getOptions, getProducerCount, getQueueSize, getSlowConsumerStrategy, getSubscriptions, isAlwaysRetroactive, isPrioritizedMessages, isProducerFlowControl, isUseCache, resetStatistics, sendTextMessage, sendTextMessage, sendTextMessage, sendTextMessage, setAlwaysRetroactive, setBlockedProducerWarningInterval, setMaxAuditDepth, setMaxPageSize, setMaxProducersToAudit, setMemoryLimit, setMemoryUsagePortion, setProducerFlowControl, setUseCachepublic QueueView(ManagedRegionBroker broker, Queue destination)
public javax.management.openmbean.CompositeData getMessage(java.lang.String messageId)
throws javax.management.openmbean.OpenDataException
QueueViewMBeangetMessage in interface QueueViewMBeanmessageId - the message id of the message to retrievejavax.management.openmbean.OpenDataExceptionpublic void purge()
throws java.lang.Exception
QueueViewMBeanpurge in interface QueueViewMBeanjava.lang.Exceptionpublic boolean removeMessage(java.lang.String messageId)
throws java.lang.Exception
QueueViewMBeanremoveMessage in interface QueueViewMBeanjava.lang.Exceptionpublic int removeMatchingMessages(java.lang.String selector)
throws java.lang.Exception
QueueViewMBeanremoveMatchingMessages in interface QueueViewMBeanjava.lang.Exceptionpublic int removeMatchingMessages(java.lang.String selector,
int maximumMessages)
throws java.lang.Exception
QueueViewMBeanremoveMatchingMessages in interface QueueViewMBeanjava.lang.Exceptionpublic boolean copyMessageTo(java.lang.String messageId,
java.lang.String destinationName)
throws java.lang.Exception
QueueViewMBeancopyMessageTo in interface QueueViewMBeanjava.lang.Exceptionpublic int copyMatchingMessagesTo(java.lang.String selector,
java.lang.String destinationName)
throws java.lang.Exception
QueueViewMBeancopyMatchingMessagesTo in interface QueueViewMBeanjava.lang.Exceptionpublic int copyMatchingMessagesTo(java.lang.String selector,
java.lang.String destinationName,
int maximumMessages)
throws java.lang.Exception
QueueViewMBeancopyMatchingMessagesTo in interface QueueViewMBeanjava.lang.Exceptionpublic boolean moveMessageTo(java.lang.String messageId,
java.lang.String destinationName)
throws java.lang.Exception
QueueViewMBeanmoveMessageTo in interface QueueViewMBeanjava.lang.Exceptionpublic int moveMatchingMessagesTo(java.lang.String selector,
java.lang.String destinationName)
throws java.lang.Exception
QueueViewMBeanmoveMatchingMessagesTo in interface QueueViewMBeanjava.lang.Exceptionpublic int moveMatchingMessagesTo(java.lang.String selector,
java.lang.String destinationName,
int maximumMessages)
throws java.lang.Exception
QueueViewMBeanmoveMatchingMessagesTo in interface QueueViewMBeanjava.lang.Exceptionpublic boolean retryMessage(java.lang.String messageId)
throws java.lang.Exception
retryMessage in interface QueueViewMBeanjava.lang.Exceptionpublic int cursorSize()
cursorSize in interface QueueViewMBeanpublic boolean doesCursorHaveMessagesBuffered()
doesCursorHaveMessagesBuffered in interface QueueViewMBeanpublic boolean doesCursorHaveSpace()
doesCursorHaveSpace in interface QueueViewMBeanpublic long getCursorMemoryUsage()
getCursorMemoryUsage in interface QueueViewMBeanpublic int getCursorPercentUsage()
getCursorPercentUsage in interface QueueViewMBeanpublic boolean isCursorFull()
isCursorFull in interface QueueViewMBeanpublic boolean isCacheEnabled()
isCacheEnabled in interface QueueViewMBeanCopyright © 2005-2013 Red Hat, Inc.. All Rights Reserved.