activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajdav...@apache.org
Subject svn commit: r634420 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/TransportConnection.java
Date Thu, 06 Mar 2008 21:26:54 GMT
Author: rajdavies
Date: Thu Mar  6 13:26:53 2008
New Revision: 634420

URL: http://svn.apache.org/viewvc?rev=634420&view=rev
Log:
reduce contention around stats on connection - thx for spotting this Hiram!

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/TransportConnection.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/TransportConnection.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/TransportConnection.java?rev=634420&r1=634419&r2=634420&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/TransportConnection.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/TransportConnection.java
Thu Mar  6 13:26:53 2008
@@ -726,7 +726,7 @@
     }
 
     public void dispatchSync(Command message) {
-        getStatistics().getEnqueues().increment();
+        //getStatistics().getEnqueues().increment();
         try {
             processDispatch(message);
         } catch (IOException e) {
@@ -736,7 +736,7 @@
 
     public void dispatchAsync(Command message) {
         if (!stopped.get()) {
-            getStatistics().getEnqueues().increment();
+            //getStatistics().getEnqueues().increment();
             if (taskRunner == null) {
                 dispatchSync(message);
             } else {



Mime
View raw message