Package org.apache.activemq.broker.jmx
Class TopicSubscriptionView
java.lang.Object
org.apache.activemq.broker.jmx.SubscriptionView
org.apache.activemq.broker.jmx.TopicSubscriptionView
- All Implemented Interfaces:
SubscriptionViewMBean,TopicSubscriptionViewMBean
-
Field Summary
Fields inherited from class org.apache.activemq.broker.jmx.SubscriptionView
clientId, subscription, userName -
Constructor Summary
ConstructorsConstructorDescriptionTopicSubscriptionView(String clientId, String userName, TopicSubscription subs) -
Method Summary
Modifier and TypeMethodDescriptionintintprotected TopicSubscriptionbooleanisActive()voidsetMaximumPendingQueueSize(int max) Methods inherited from class org.apache.activemq.broker.jmx.SubscriptionView
gc, getClientId, getConnection, getConnectionId, getConsumedCount, getConsumerInfo, getDequeueCounter, getDestinationName, getDispatchedCounter, getDispatchedQueueSize, getEnqueueCounter, getMaximumPendingMessageLimit, getMessageCountAwaitingAcknowledge, getPendingQueueSize, getPrefetchSize, getPriority, getSelector, getSessionId, getSubscriptionId, getSubscriptionName, getUserName, isDestinationQueue, isDestinationTemporary, isDestinationTopic, isDispatchAsync, isDurable, isExclusive, isMatchingQueue, isMatchingTopic, isNetwork, isNoLocal, isRetroactive, isSlowConsumer, matchesDestination, resetStatistics, setSelector, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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, getSubscriptionName, getUserName, isDestinationQueue, isDestinationTemporary, isDestinationTopic, isDispatchAsync, isDurable, isExclusive, isMatchingQueue, isMatchingTopic, isNetwork, isNoLocal, isRetroactive, isSlowConsumer, resetStatistics, setSelector
-
Constructor Details
-
TopicSubscriptionView
-
-
Method Details
-
getTopicSubscription
-
getDiscardedCount
public int getDiscardedCount()- Specified by:
getDiscardedCountin interfaceTopicSubscriptionViewMBean- Returns:
- the number of messages discarded due to being a slow consumer
-
getMaximumPendingQueueSize
public int getMaximumPendingQueueSize()- Specified by:
getMaximumPendingQueueSizein interfaceTopicSubscriptionViewMBean- Returns:
- the maximun number of messages that can be pending.
-
setMaximumPendingQueueSize
public void setMaximumPendingQueueSize(int max) - Specified by:
setMaximumPendingQueueSizein interfaceTopicSubscriptionViewMBean
-
isActive
public boolean isActive()- Specified by:
isActivein interfaceSubscriptionViewMBean- Overrides:
isActivein classSubscriptionView- Returns:
- true if the subscriber is active
-