git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@814627 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Davies 2009-09-14 13:12:46 +00:00
parent 5ab78c1234
commit f3b1ea9cfb
1 changed files with 3 additions and 3 deletions

View File

@ -79,7 +79,7 @@ public class FailoverTransport implements CompositeTransport {
private long initialReconnectDelay = 10; private long initialReconnectDelay = 10;
private long maxReconnectDelay = 1000 * 30; private long maxReconnectDelay = 1000 * 30;
private long backOffMultiplier = 2; private double backOffMultiplier = 2d;
private long timeout = -1; private long timeout = -1;
private boolean useExponentialBackOff = true; private boolean useExponentialBackOff = true;
private boolean randomize = true; private boolean randomize = true;
@ -293,11 +293,11 @@ public class FailoverTransport implements CompositeTransport {
this.reconnectDelay = reconnectDelay; this.reconnectDelay = reconnectDelay;
} }
public long getReconnectDelayExponent() { public double getReconnectDelayExponent() {
return backOffMultiplier; return backOffMultiplier;
} }
public void setReconnectDelayExponent(long reconnectDelayExponent) { public void setReconnectDelayExponent(double reconnectDelayExponent) {
this.backOffMultiplier = reconnectDelayExponent; this.backOffMultiplier = reconnectDelayExponent;
} }