private void setSocketOptions(final Builder builder) { val socketOptions = kikahaConf.config().getConfig("server.undertow.socket-options"); for (val entry : socketOptions.entrySet()) { val option = getConfigOption(entry.getValue(), entry.getKey()); if (option != null) builder.setSocketOption(option.getOption(), option.getValue()); } }
private void setValues(final Builder builder) { val config = kikahaConf.config().getConfig("server.undertow"); setIOThreads(builder, config); setWorkerThreads(builder, config); setBufferSize(builder, config); }