boolean useNio = settings.getBoolean(Keys.fanout.useNio, true);
int limit = settings.getInteger(Keys.fanout.connectionLimit, 0);
if (useNio) {
if (StringUtils.isEmpty(bindInterface)) {
fanoutService = new FanoutNioService(port);
} else {
fanoutService = new FanoutNioService(bindInterface, port);
}
} else {
if (StringUtils.isEmpty(bindInterface)) {
fanoutService = new FanoutSocketService(port);
} else {