activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r387559 - /incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/ActiveMQConnection.java
Date Tue, 21 Mar 2006 16:06:58 GMT
Author: chirino
Date: Tue Mar 21 08:06:57 2006
New Revision: 387559

URL: http://svn.apache.org/viewcvs?rev=387559&view=rev
Log:
flowControlSleepTime was not used.

Modified:
    incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/ActiveMQConnection.java

Modified: incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/ActiveMQConnection.java
URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/ActiveMQConnection.java?rev=387559&r1=387558&r2=387559&view=diff
==============================================================================
--- incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/ActiveMQConnection.java
(original)
+++ incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/ActiveMQConnection.java
Tue Mar 21 08:06:57 2006
@@ -24,6 +24,7 @@
 import java.util.HashMap;
 import java.util.Iterator;
 import java.util.Map;
+
 import javax.jms.Connection;
 import javax.jms.ConnectionConsumer;
 import javax.jms.ConnectionMetaData;
@@ -42,6 +43,7 @@
 import javax.jms.TopicConnection;
 import javax.jms.TopicSession;
 import javax.jms.XAConnection;
+
 import org.apache.activemq.command.ActiveMQDestination;
 import org.apache.activemq.command.ActiveMQMessage;
 import org.apache.activemq.command.ActiveMQTempDestination;
@@ -70,7 +72,6 @@
 import org.apache.activemq.management.StatsCapable;
 import org.apache.activemq.management.StatsImpl;
 import org.apache.activemq.thread.TaskRunnerFactory;
-import org.apache.activemq.transport.DefaultTransportListener;
 import org.apache.activemq.transport.Transport;
 import org.apache.activemq.transport.TransportListener;
 import org.apache.activemq.util.IdGenerator;
@@ -80,6 +81,7 @@
 import org.apache.activemq.util.ServiceSupport;
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
+
 import edu.emory.mathcs.backport.java.util.concurrent.ConcurrentHashMap;
 import edu.emory.mathcs.backport.java.util.concurrent.CopyOnWriteArrayList;
 import edu.emory.mathcs.backport.java.util.concurrent.CountDownLatch;
@@ -119,7 +121,6 @@
     private boolean useRetroactiveConsumer;
     private int closeTimeout = 15000;
     
-    private long flowControlSleepTime = 0;
     private final JMSConnectionStatsImpl stats;
     private final JMSStatsImpl factoryStats;
     private final Transport transport;
@@ -1083,13 +1084,6 @@
             throw new ConnectionClosedException();
         } else {
 
-            if (command.isMessage() && flowControlSleepTime > 0) {
-                try {
-                    Thread.sleep(flowControlSleepTime);
-                } catch (InterruptedException e) {
-                }
-            }
-
             try {
                 this.transport.oneway(command);
             } catch (IOException e) {
@@ -1110,13 +1104,6 @@
             throw new ConnectionClosedException();
         } else {
 
-            if (command.isMessage() && flowControlSleepTime > 0) {
-                try {
-                    Thread.sleep(flowControlSleepTime);
-                } catch (InterruptedException e) {
-                }
-            }
-
             try {
                 Response response = this.transport.request(command);
                 if (response.isException()) {
@@ -1144,13 +1131,6 @@
         if (isClosed()) {
             throw new ConnectionClosedException();
         } else {
-
-            if (command.isMessage() && flowControlSleepTime > 0) {
-                try {
-                    Thread.sleep(flowControlSleepTime);
-                } catch (InterruptedException e) {
-                }
-            }
 
             try {
                 Response response = this.transport.request(command,timeout);



Mime
View raw message