org.apache.activemq.broker.jmx
Interface SubscriptionViewMBean
- All Known Subinterfaces:
- DurableSubscriptionViewMBean, TopicSubscriptionViewMBean
- All Known Implementing Classes:
- DurableSubscriptionView, InactiveDurableSubscriptionView, SubscriptionView, TopicSubscriptionView
public interface SubscriptionViewMBean
- Version:
- $Revision: 1.5 $
getClientId
java.lang.String getClientId()
- Returns:
- the clientId of the Connection the Subscription is on
getConnectionId
java.lang.String getConnectionId()
- Returns:
- the id of the Connection the Subscription is on
getSessionId
long getSessionId()
- Returns:
- the id of the Session the subscription is on
getSubcriptionId
long getSubcriptionId()
- Returns:
- the id of the Subscription
getDestinationName
java.lang.String getDestinationName()
- Returns:
- the destination name
getSelector
java.lang.String getSelector()
- Returns:
- the JMS selector on the current subscription
setSelector
void setSelector(java.lang.String selector)
throws javax.jms.InvalidSelectorException,
java.lang.UnsupportedOperationException
- Attempts to change the current active selector on the subscription. This
operation is not supported for persistent topics.
- Throws:
javax.jms.InvalidSelectorException
java.lang.UnsupportedOperationException
isDestinationQueue
boolean isDestinationQueue()
- Returns:
- true if the destination is a Queue
isDestinationTopic
boolean isDestinationTopic()
- Returns:
- true of the destination is a Topic
isDestinationTemporary
boolean isDestinationTemporary()
- Returns:
- true if the destination is temporary
isActive
boolean isActive()
- Returns:
- true if the subscriber is active
getPendingQueueSize
int getPendingQueueSize()
- Returns:
- number of messages pending delivery
getDispatchedQueueSize
int getDispatchedQueueSize()
- Returns:
- number of messages dispatched
getDispachedCounter
long getDispachedCounter()
- Returns:
- number of messages that matched the subscription
getEnqueueCounter
long getEnqueueCounter()
- Returns:
- number of messages that matched the subscription
getDequeueCounter
long getDequeueCounter()
- Returns:
- number of messages queued by the client
getPrefetchSize
int getPrefetchSize()
- Returns:
- the prefetch that has been configured for this subscriber
isRetroactive
boolean isRetroactive()
- Returns:
- whether or not the subscriber is retroactive or not
isExclusive
boolean isExclusive()
- Returns:
- whether or not the subscriber is an exclusive consumer
isDurable
boolean isDurable()
- Returns:
- whether or not the subscriber is durable (persistent)
isNoLocal
boolean isNoLocal()
- Returns:
- whether or not the subscriber ignores local messages
getMaximumPendingMessageLimit
int getMaximumPendingMessageLimit()
- Returns:
- the maximum number of pending messages allowed in addition to the
prefetch size. If enabled to a non-zero value then this will
perform eviction of messages for slow consumers on non-durable
topics.
getPriority
byte getPriority()
- Returns:
- the consumer priority
getSubcriptionName
java.lang.String getSubcriptionName()
- Returns:
- the name of the consumer which is only used for durable
consumers.
Copyright © 2009 Apache Software Foundation. All Rights Reserved.