code: @Override
      protected void doSetAll(IoSessionConfig config) {
          if (config instanceof SerialSessionConfig) {
              SerialSessionConfig cfg = (SerialSessionConfig) config;
              setInputBufferSize(cfg.getInputBufferSize());
              setReceiveThreshold(cfg.getReceiveThreshold());
          }
      }
docs: {@inheritDoc}