public synchronized void startup() { if (hydra != null) { return; } if (registry.isEmpty()) { LOGGER.error("Not found NS handler was be registered"); return; } HydraBuilder builder = new HydraBuilder(); builder.bind(host).port(port).messageReceivedListener(this).threads(option.getThreads()); hydra = builder.build(); hydra.startup(); }