activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajdav...@apache.org
Subject svn commit: r608414 - in /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/jmx: SubscriptionView.java SubscriptionViewMBean.java
Date Thu, 03 Jan 2008 10:03:20 GMT
Author: rajdavies
Date: Thu Jan  3 02:03:19 2008
New Revision: 608414

URL: http://svn.apache.org/viewvc?rev=608414&view=rev
Log:
nake inflight message count a little more explicit

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/jmx/SubscriptionView.java
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/jmx/SubscriptionViewMBean.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/jmx/SubscriptionView.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/jmx/SubscriptionView.java?rev=608414&r1=608413&r2=608414&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/jmx/SubscriptionView.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/jmx/SubscriptionView.java
Thu Jan  3 02:03:19 2008
@@ -233,6 +233,10 @@
     public int getDispatchedQueueSize() {
         return subscription != null ? subscription.getDispatchedQueueSize() : 0;
     }
+    
+    public int getMessageCountAwaitingAcknowledge() {
+        return getDispatchedQueueSize();
+    }
 
     /**
      * @return number of messages that matched the subscription

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/jmx/SubscriptionViewMBean.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/jmx/SubscriptionViewMBean.java?rev=608414&r1=608413&r2=608414&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/jmx/SubscriptionViewMBean.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/jmx/SubscriptionViewMBean.java
Thu Jan  3 02:03:19 2008
@@ -88,6 +88,13 @@
      * @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



Mime
View raw message