|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.activemq.broker.jmx.SubscriptionView
public class SubscriptionView
Field Summary | |
---|---|
protected String |
clientId
|
protected Subscription |
subscription
|
Constructor Summary | |
---|---|
SubscriptionView(String clientId,
Subscription subs)
Constructor |
Method Summary | |
---|---|
void |
gc()
The subscription should release as may references as it can to help the garbage collector reclaim memory. |
String |
getClientId()
|
String |
getConnectionId()
|
protected ConsumerInfo |
getConsumerInfo()
|
long |
getDequeueCounter()
|
String |
getDestinationName()
|
long |
getDispachedCounter()
|
int |
getDispatchedQueueSize()
|
long |
getEnqueueCounter()
|
int |
getMaximumPendingMessageLimit()
|
int |
getMessageCountAwaitingAcknowledge()
The same as the number of messages dispatched - making it explicit |
int |
getPendingQueueSize()
|
int |
getPrefetchSize()
|
byte |
getPriority()
|
String |
getSelector()
|
long |
getSessionId()
|
long |
getSubcriptionId()
|
String |
getSubcriptionName()
|
boolean |
isActive()
|
boolean |
isDestinationQueue()
|
boolean |
isDestinationTemporary()
|
boolean |
isDestinationTopic()
|
boolean |
isDurable()
|
boolean |
isExclusive()
|
boolean |
isMatchingQueue(String queueName)
Returns true if this subscription (which may be using wildcards) matches the given queue name |
boolean |
isMatchingTopic(String topicName)
Returns true if this subscription (which may be using wildcards) matches the given topic name |
boolean |
isNoLocal()
|
boolean |
isRetroactive()
|
boolean |
matchesDestination(ActiveMQDestination destination)
Return true if this subscription matches the given destination |
void |
setSelector(String selector)
Attempts to change the current active selector on the subscription. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final Subscription subscription
protected final String clientId
Constructor Detail |
---|
public SubscriptionView(String clientId, Subscription subs)
subs
- Method Detail |
---|
public String getClientId()
getClientId
in interface SubscriptionViewMBean
public String getConnectionId()
getConnectionId
in interface SubscriptionViewMBean
public long getSessionId()
getSessionId
in interface SubscriptionViewMBean
public long getSubcriptionId()
getSubcriptionId
in interface SubscriptionViewMBean
public String getDestinationName()
getDestinationName
in interface SubscriptionViewMBean
public String getSelector()
getSelector
in interface SubscriptionViewMBean
public void setSelector(String selector) throws InvalidSelectorException, UnsupportedOperationException
SubscriptionViewMBean
setSelector
in interface SubscriptionViewMBean
InvalidSelectorException
UnsupportedOperationException
public boolean isDestinationQueue()
isDestinationQueue
in interface SubscriptionViewMBean
public boolean isDestinationTopic()
isDestinationTopic
in interface SubscriptionViewMBean
public boolean isDestinationTemporary()
isDestinationTemporary
in interface SubscriptionViewMBean
public boolean isActive()
isActive
in interface SubscriptionViewMBean
public void gc()
public boolean isRetroactive()
isRetroactive
in interface SubscriptionViewMBean
public boolean isExclusive()
isExclusive
in interface SubscriptionViewMBean
public boolean isDurable()
isDurable
in interface SubscriptionViewMBean
public boolean isNoLocal()
isNoLocal
in interface SubscriptionViewMBean
public int getMaximumPendingMessageLimit()
getMaximumPendingMessageLimit
in interface SubscriptionViewMBean
public byte getPriority()
getPriority
in interface SubscriptionViewMBean
public String getSubcriptionName()
getSubcriptionName
in interface SubscriptionViewMBean
public int getPendingQueueSize()
getPendingQueueSize
in interface SubscriptionViewMBean
public int getDispatchedQueueSize()
getDispatchedQueueSize
in interface SubscriptionViewMBean
public int getMessageCountAwaitingAcknowledge()
SubscriptionViewMBean
getMessageCountAwaitingAcknowledge
in interface SubscriptionViewMBean
public long getDispachedCounter()
getDispachedCounter
in interface SubscriptionViewMBean
public long getEnqueueCounter()
getEnqueueCounter
in interface SubscriptionViewMBean
public long getDequeueCounter()
getDequeueCounter
in interface SubscriptionViewMBean
protected ConsumerInfo getConsumerInfo()
public String toString()
toString
in class Object
public int getPrefetchSize()
getPrefetchSize
in interface SubscriptionViewMBean
public boolean isMatchingQueue(String queueName)
SubscriptionViewMBean
isMatchingQueue
in interface SubscriptionViewMBean
queueName
- the JMS queue name to match against
public boolean isMatchingTopic(String topicName)
SubscriptionViewMBean
isMatchingTopic
in interface SubscriptionViewMBean
topicName
- the JMS topic name to match against
public boolean matchesDestination(ActiveMQDestination destination)
destination
- the destination to compare against
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |