} else {
fanoutService = new FanoutNioService(bindInterface, port);
}
} else {
if (StringUtils.isEmpty(bindInterface)) {
fanoutService = new FanoutSocketService(port);
} else {
fanoutService = new FanoutSocketService(bindInterface, port);
}
}
fanoutService.setConcurrentConnectionLimit(limit);
fanoutService.setAllowAllChannelAnnouncements(false);