Loggers.MSG.info("{}: SSL/TLS is enabled", jobName); final int sto = netConfig.getTimeoutMilliSec(); if (sto > 0) { this.socketTimeout = sto; bootstrap.option(ChannelOption.CONNECT_TIMEOUT_MILLIS, netConfig.getTimeoutMilliSec()); bootstrap.option(ChannelOption.WRITE_SPIN_COUNT, 1); int size = (int) netConfig.getRcvBuf().get();
public NetConfig(final NetConfig other) { this.timeoutMilliSec = other.getTimeoutMilliSec(); this.reuseAddr = other.getReuseAddr(); this.keepAlive = other.getKeepAlive(); this.tcpNoDelay = other.getTcpNoDelay(); this.linger = other.getLinger(); this.bindBacklogSize = other.getBindBacklogSize(); this.interestOpQueued = other.getInterestOpQueued(); this.rcvBuf = new SizeInBytes(other.getRcvBuf()); this.sndBuf = new SizeInBytes(other.getSndBuf()); this.ioRatio = other.getIoRatio(); this.transport = other.getTransport(); this.ssl = other.getSsl(); this.httpConfig = new HttpConfig(other.getHttpConfig()); this.nodeConfig = new NodeConfig(other.getNodeConfig()); } }