nake inflight message count a little more explicit

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@608414 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Davies 2008-01-03 10:03:19 +00:00
parent 082bbf0f06
commit 9899dff93d
2 changed files with 11 additions and 0 deletions

View File

@ -233,6 +233,10 @@ public class SubscriptionView implements SubscriptionViewMBean {
public int getDispatchedQueueSize() {
return subscription != null ? subscription.getDispatchedQueueSize() : 0;
}
public int getMessageCountAwaitingAcknowledge() {
return getDispatchedQueueSize();
}
/**
* @return number of messages that matched the subscription

View File

@ -88,6 +88,13 @@ public interface SubscriptionViewMBean {
* @return number of messages dispatched
*/
int getDispatchedQueueSize();
/**
* The same as the number of messages dispatched -
* making it explicit
* @return
*/
int getMessageCountAwaitingAcknowledge();
/**
* @return number of messages that matched the subscription