activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajdav...@apache.org
Subject svn commit: r814627 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/failover/FailoverTransport.java
Date Mon, 14 Sep 2009 13:12:46 GMT
Author: rajdavies
Date: Mon Sep 14 13:12:46 2009
New Revision: 814627

URL: http://svn.apache.org/viewvc?rev=814627&view=rev
Log:
Fix for https://issues.apache.org/activemq/browse/AMQ-2391

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/failover/FailoverTransport.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/failover/FailoverTransport.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/failover/FailoverTransport.java?rev=814627&r1=814626&r2=814627&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/failover/FailoverTransport.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/failover/FailoverTransport.java
Mon Sep 14 13:12:46 2009
@@ -79,7 +79,7 @@
 
     private long initialReconnectDelay = 10;
     private long maxReconnectDelay = 1000 * 30;
-    private long backOffMultiplier = 2;
+    private double backOffMultiplier = 2d;
     private long timeout = -1;
     private boolean useExponentialBackOff = true;
     private boolean randomize = true;
@@ -293,11 +293,11 @@
         this.reconnectDelay = reconnectDelay;
     }
 
-    public long getReconnectDelayExponent() {
+    public double getReconnectDelayExponent() {
         return backOffMultiplier;
     }
 
-    public void setReconnectDelayExponent(long reconnectDelayExponent) {
+    public void setReconnectDelayExponent(double reconnectDelayExponent) {
         this.backOffMultiplier = reconnectDelayExponent;
     }
 



Mime
View raw message