org.apache.activemq.broker.jmx
Interface DurableSubscriptionViewMBean

All Superinterfaces:
SubscriptionViewMBean
All Known Implementing Classes:
DurableSubscriptionView, InactiveDurableSubscriptionView

public interface DurableSubscriptionViewMBean
extends SubscriptionViewMBean


Method Summary
 javax.management.openmbean.CompositeData[] browse()
          Browse messages for this durable subscriber
 javax.management.openmbean.TabularData browseAsTable()
          Browse messages for this durable subscriber
 int cursorSize()
           
 void destroy()
          Destroys the durable subscription so that messages will no longer be stored for this subscription
 boolean doesCursorHaveMessagesBuffered()
           
 boolean doesCursorHaveSpace()
           
 long getCursorMemoryUsage()
           
 int getCursorPercentUsage()
           
 java.lang.String getSubscriptionName()
           
 boolean isCursorFull()
           
 
Methods inherited from interface org.apache.activemq.broker.jmx.SubscriptionViewMBean
getClientId, getConnection, getConnectionId, getDequeueCounter, getDestinationName, getDispatchedCounter, getDispatchedQueueSize, getEnqueueCounter, getMaximumPendingMessageLimit, getMessageCountAwaitingAcknowledge, getPendingQueueSize, getPrefetchSize, getPriority, getSelector, getSessionId, getSubcriptionId, getSubcriptionName, getUserName, isActive, isDestinationQueue, isDestinationTemporary, isDestinationTopic, isDurable, isExclusive, isMatchingQueue, isMatchingTopic, isNoLocal, isRetroactive, isSlowConsumer, setSelector
 

Method Detail

getSubscriptionName

java.lang.String getSubscriptionName()
Returns:
name of the durable subscription name

browse

javax.management.openmbean.CompositeData[] browse()
                                                  throws javax.management.openmbean.OpenDataException
Browse messages for this durable subscriber

Returns:
messages
Throws:
javax.management.openmbean.OpenDataException

browseAsTable

javax.management.openmbean.TabularData browseAsTable()
                                                     throws javax.management.openmbean.OpenDataException
Browse messages for this durable subscriber

Returns:
messages
Throws:
javax.management.openmbean.OpenDataException

destroy

void destroy()
             throws java.lang.Exception
Destroys the durable subscription so that messages will no longer be stored for this subscription

Throws:
java.lang.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


Copyright © 2005-2016. All Rights Reserved.