Package org.apache.activemq.broker.jmx
Interface DurableSubscriptionViewMBean
- All Superinterfaces:
SubscriptionViewMBean
- All Known Implementing Classes:
DurableSubscriptionView,InactiveDurableSubscriptionView
-
Method Summary
Modifier and TypeMethodDescriptionbrowse()Browse messages for this durable subscriberBrowse messages for this durable subscriberintvoiddestroy()Destroys the durable subscription so that messages will no longer be stored for this subscriptionbooleanbooleanlongintbooleanvoidremoveMessage(String messageId) Removes a message from the durable subscription.Methods inherited from interface org.apache.activemq.broker.jmx.SubscriptionViewMBean
getClientId, getConnection, getConnectionId, getConsumedCount, getDequeueCounter, getDestinationName, getDispatchedCounter, getDispatchedQueueSize, getEnqueueCounter, getMaximumPendingMessageLimit, getMessageCountAwaitingAcknowledge, getPendingQueueSize, getPrefetchSize, getPriority, getSelector, getSessionId, getSubscriptionId, getUserName, isActive, isDestinationQueue, isDestinationTemporary, isDestinationTopic, isDispatchAsync, isDurable, isExclusive, isMatchingQueue, isMatchingTopic, isNetwork, isNoLocal, isRetroactive, isSlowConsumer, resetStatistics, setSelector
-
Method Details
-
getSubscriptionName
String getSubscriptionName()- Specified by:
getSubscriptionNamein interfaceSubscriptionViewMBean- Returns:
- name of the durable subscription name
-
browse
Browse messages for this durable subscriber- Returns:
- messages
- Throws:
OpenDataException
-
browseAsTable
Browse messages for this durable subscriber- Returns:
- messages
- Throws:
OpenDataException
-
destroy
Destroys the durable subscription so that messages will no longer be stored for this subscription- Throws:
Exception
-
doesCursorHaveSpace
boolean doesCursorHaveSpace()- Returns:
- true if the message cursor has memory space available to page in more messages
-
isCursorFull
boolean isCursorFull()- Returns:
- true if the cursor has reached its memory limit for paged in messages
-
doesCursorHaveMessagesBuffered
boolean doesCursorHaveMessagesBuffered()- Returns:
- true if the cursor has messages buffered to deliver
-
getCursorMemoryUsage
long getCursorMemoryUsage()- Returns:
- the cursor memory usage in bytes
-
getCursorPercentUsage
int getCursorPercentUsage()- Returns:
- the cursor memory usage as a percentage
-
cursorSize
int cursorSize()- Returns:
- the number of messages available to be paged in by the cursor
-
removeMessage
Removes a message from the durable subscription.- Parameters:
messageId-- Throws:
Exception
-