mirror of https://github.com/apache/activemq.git
Include the prefetch size in the JMX stats of a subscription
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@397982 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d67246412d
commit
f5f1366e4b
|
@ -210,4 +210,10 @@ public class SubscriptionView implements SubscriptionViewMBean {
|
|||
return "SubscriptionView: " + getClientId() + ":" + getConnectionId();
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public int getPrefetchSize() {
|
||||
return subscription != null ? subscription.getPrefetchSize() : 0;
|
||||
}
|
||||
|
||||
}
|
|
@ -101,4 +101,8 @@ public interface SubscriptionViewMBean{
|
|||
*/
|
||||
long getDequeueCounter();
|
||||
|
||||
/**
|
||||
* @return the prefetch that has been configured for this subscriber
|
||||
*/
|
||||
public int getPrefetchSize();
|
||||
}
|
|
@ -150,4 +150,8 @@ abstract public class AbstractSubscription implements Subscription {
|
|||
public void setObjectName(ObjectName objectName) {
|
||||
this.objectName = objectName;
|
||||
}
|
||||
|
||||
public int getPrefetchSize() {
|
||||
return info.getPrefetchSize();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -176,4 +176,9 @@ public interface Subscription {
|
|||
*/
|
||||
public void destroy();
|
||||
|
||||
/**
|
||||
* @return the prefetch size that is configured for the subscription
|
||||
*/
|
||||
int getPrefetchSize();
|
||||
|
||||
}
|
Loading…
Reference in New Issue