ARTEMIS-2074 Fixing Covery scan findings
This commit is contained in:
parent
576f67c7c2
commit
25a7d3bffc
|
@ -67,14 +67,6 @@ public class ActiveMQConnectionFactory extends JNDIStorable implements Connectio
|
||||||
|
|
||||||
private static final long serialVersionUID = 6730844785641767519L;
|
private static final long serialVersionUID = 6730844785641767519L;
|
||||||
|
|
||||||
public void setUseTopologyForLoadBalancing(boolean useTopologyForLoadBalancing) {
|
|
||||||
serverLocator.setUseTopologyForLoadBalancing(useTopologyForLoadBalancing);
|
|
||||||
}
|
|
||||||
|
|
||||||
public boolean isUseTopologyForLoadBalancing() {
|
|
||||||
return serverLocator.getUseTopologyForLoadBalancing();
|
|
||||||
}
|
|
||||||
|
|
||||||
private ServerLocator serverLocator;
|
private ServerLocator serverLocator;
|
||||||
|
|
||||||
private String clientID;
|
private String clientID;
|
||||||
|
@ -543,6 +535,16 @@ public class ActiveMQConnectionFactory extends JNDIStorable implements Connectio
|
||||||
serverLocator.setCallFailoverTimeout(callTimeout);
|
serverLocator.setCallFailoverTimeout(callTimeout);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public synchronized void setUseTopologyForLoadBalancing(boolean useTopologyForLoadBalancing) {
|
||||||
|
checkWrite();
|
||||||
|
serverLocator.setUseTopologyForLoadBalancing(useTopologyForLoadBalancing);
|
||||||
|
}
|
||||||
|
|
||||||
|
public synchronized boolean isUseTopologyForLoadBalancing() {
|
||||||
|
checkWrite();
|
||||||
|
return serverLocator.getUseTopologyForLoadBalancing();
|
||||||
|
}
|
||||||
|
|
||||||
public synchronized int getConsumerWindowSize() {
|
public synchronized int getConsumerWindowSize() {
|
||||||
return serverLocator.getConsumerWindowSize();
|
return serverLocator.getConsumerWindowSize();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue