コード例 #1
0
 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());
   }
 }
コード例 #2
0
 private void setValues(final Builder builder) {
   val config = kikahaConf.config().getConfig("server.undertow");
   setIOThreads(builder, config);
   setWorkerThreads(builder, config);
   setBufferSize(builder, config);
 }