This commit is contained in:
Rob Davies 2013-11-12 08:08:07 +00:00
parent 7e000d5a40
commit 47d1985139
2 changed files with 14 additions and 0 deletions

View File

@ -90,6 +90,9 @@ public class TransportConnector implements Connector, BrokerServiceAware {
setEnableStatusMonitor(false);
}
}
if (server != null){
setAllowLinkStealing(server.isAllowLinkStealing());
}
}
/**
@ -123,6 +126,7 @@ public class TransportConnector implements Connector, BrokerServiceAware {
rc.setMaximumConsumersAllowedPerConnection(getMaximumConsumersAllowedPerConnection());
rc.setMaximumProducersAllowedPerConnection(getMaximumProducersAllowedPerConnection());
rc.setPublishedAddressPolicy(getPublishedAddressPolicy());
rc.setAllowLinkStealing(isAllowLinkStealing());
return rc;
}

View File

@ -39,6 +39,7 @@ public class VMTransportServer implements TransportServer {
private final AtomicInteger connectionCount = new AtomicInteger(0);
private final boolean disposeOnDisconnect;
private boolean allowLinkStealing;
/**
* @param location
@ -142,4 +143,13 @@ public class VMTransportServer implements TransportServer {
public boolean isSslServer() {
return false;
}
@Override
public boolean isAllowLinkStealing() {
return allowLinkStealing;
}
public void setAllowLinkStealing(boolean allowLinkStealing) {
this.allowLinkStealing = allowLinkStealing;
}
}