private ConnectionRequest(SocketChannel channel, IoHandler handler, IoServiceConfig config) { this.channel = channel; long timeout; if (config instanceof IoConnectorConfig) { timeout = ((IoConnectorConfig) config) .getConnectTimeoutMillis(); } else { timeout = ((IoConnectorConfig) getDefaultConfig()) .getConnectTimeoutMillis(); } this.deadline = System.currentTimeMillis() + timeout; this.handler = handler; this.config = config; } }
config.setThreadModel(ThreadModel.MANUAL);