mirror of https://github.com/apache/activemq.git
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@814627 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5ab78c1234
commit
f3b1ea9cfb
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue