mirror of https://github.com/apache/activemq.git
This commit is contained in:
parent
7e000d5a40
commit
47d1985139
|
@ -90,6 +90,9 @@ public class TransportConnector implements Connector, BrokerServiceAware {
|
||||||
setEnableStatusMonitor(false);
|
setEnableStatusMonitor(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (server != null){
|
||||||
|
setAllowLinkStealing(server.isAllowLinkStealing());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -123,6 +126,7 @@ public class TransportConnector implements Connector, BrokerServiceAware {
|
||||||
rc.setMaximumConsumersAllowedPerConnection(getMaximumConsumersAllowedPerConnection());
|
rc.setMaximumConsumersAllowedPerConnection(getMaximumConsumersAllowedPerConnection());
|
||||||
rc.setMaximumProducersAllowedPerConnection(getMaximumProducersAllowedPerConnection());
|
rc.setMaximumProducersAllowedPerConnection(getMaximumProducersAllowedPerConnection());
|
||||||
rc.setPublishedAddressPolicy(getPublishedAddressPolicy());
|
rc.setPublishedAddressPolicy(getPublishedAddressPolicy());
|
||||||
|
rc.setAllowLinkStealing(isAllowLinkStealing());
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -39,6 +39,7 @@ public class VMTransportServer implements TransportServer {
|
||||||
|
|
||||||
private final AtomicInteger connectionCount = new AtomicInteger(0);
|
private final AtomicInteger connectionCount = new AtomicInteger(0);
|
||||||
private final boolean disposeOnDisconnect;
|
private final boolean disposeOnDisconnect;
|
||||||
|
private boolean allowLinkStealing;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param location
|
* @param location
|
||||||
|
@ -142,4 +143,13 @@ public class VMTransportServer implements TransportServer {
|
||||||
public boolean isSslServer() {
|
public boolean isSslServer() {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isAllowLinkStealing() {
|
||||||
|
return allowLinkStealing;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAllowLinkStealing(boolean allowLinkStealing) {
|
||||||
|
this.allowLinkStealing = allowLinkStealing;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue