org.apache.activemq.broker.jmx
Class DurableSubscriptionView
java.lang.Object
org.apache.activemq.broker.jmx.SubscriptionView
org.apache.activemq.broker.jmx.DurableSubscriptionView
- All Implemented Interfaces:
- DurableSubscriptionViewMBean, SubscriptionViewMBean
public class DurableSubscriptionView
- extends SubscriptionView
- implements DurableSubscriptionViewMBean
- Version:
- $Revision: 1.5 $
Method Summary |
javax.management.openmbean.CompositeData[] |
browse()
Browse messages for this durable subscriber |
javax.management.openmbean.TabularData |
browseAsTable()
Browse messages for this durable subscriber |
void |
destroy()
Destroys the durable subscription so that messages will no longer be stored for this subscription |
java.lang.String |
getSubscriptionName()
|
java.lang.String |
toString()
|
Methods inherited from class org.apache.activemq.broker.jmx.SubscriptionView |
gc, getClientId, getConnectionId, getConsumerInfo, getDequeueCounter, getDestinationName, getDispachedCounter, getDispatchedQueueSize, getEnqueueCounter, getMaximumPendingMessageLimit, getPendingQueueSize, getPrefetchSize, getPriority, getSelector, getSessionId, getSubcriptionId, getSubcriptionName, isActive, isDestinationQueue, isDestinationTemporary, isDestinationTopic, isDurable, isExclusive, isNoLocal, isRetroactive, setSelector |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.activemq.broker.jmx.SubscriptionViewMBean |
getClientId, getConnectionId, getDequeueCounter, getDestinationName, getDispachedCounter, getDispatchedQueueSize, getEnqueueCounter, getMaximumPendingMessageLimit, getPendingQueueSize, getPrefetchSize, getPriority, getSelector, getSessionId, getSubcriptionId, getSubcriptionName, isActive, isDestinationQueue, isDestinationTemporary, isDestinationTopic, isDurable, isExclusive, isNoLocal, isRetroactive, setSelector |
broker
protected ManagedRegionBroker broker
subscriptionName
protected java.lang.String subscriptionName
DurableSubscriptionView
public DurableSubscriptionView(ManagedRegionBroker broker,
java.lang.String clientId,
Subscription sub)
- Constructor
- Parameters:
clientId
- sub
-
getSubscriptionName
public java.lang.String getSubscriptionName()
- Specified by:
getSubscriptionName
in interface DurableSubscriptionViewMBean
- Returns:
- name of the durable consumer
browse
public javax.management.openmbean.CompositeData[] browse()
throws javax.management.openmbean.OpenDataException
- Browse messages for this durable subscriber
- Specified by:
browse
in interface DurableSubscriptionViewMBean
- Returns:
- messages
- Throws:
javax.management.openmbean.OpenDataException
browseAsTable
public javax.management.openmbean.TabularData browseAsTable()
throws javax.management.openmbean.OpenDataException
- Browse messages for this durable subscriber
- Specified by:
browseAsTable
in interface DurableSubscriptionViewMBean
- Returns:
- messages
- Throws:
javax.management.openmbean.OpenDataException
destroy
public void destroy()
throws java.lang.Exception
- Destroys the durable subscription so that messages will no longer be stored for this subscription
- Specified by:
destroy
in interface DurableSubscriptionViewMBean
- Throws:
java.lang.Exception
toString
public java.lang.String toString()
- Overrides:
toString
in class SubscriptionView
- Returns:
- pretty print
Copyright © 2011 Apache Software Foundation. All Rights Reserved.