docs: public static void setChannelOptions(Channel channel, EndpointConfig config) {
          ChannelOptions options = channel.options();
          options.setOption(DIRECT_BUF, config.isSocketBufferDirect())
                 .setOption(TCP_NODELAY, config.isSocketTcpNoDelay())
                 .setOption(SO_KEEPALIVE, config.isSocketKeepAlive())
                 .setOption(SO_SNDBUF, config.getSocketSendBufferSizeKb() * KILO_BYTE)
                 .setOption(SO_RCVBUF, config.getSocketRcvBufferSizeKb() * KILO_BYTE)
                 .setOption(SO_LINGER, config.getSocketLingerSeconds());
      }