this.pipelineFactory = new NettyHttpRequesterPipelineFactory(this.connectionContext, NettyConnectionAdpater.timer);
this.bootstrap.setPipelineFactory(this.pipelineFactory);
// Starts the connection attempt.
this.remotSocketAddress = new InetSocketAddress(host, port);
ChannelFuture future = bootstrap.connect(this.remotSocketAddress);
this.operationListener = new NettyOperationListener();
future.addListener(this.operationListener);
try {
// waits until operation is done
this.channel = this.operationListener.awaitUninterruptibly(baseConf.getConnectionTimeoutMillis()).getChannel();
// complete localSocketAdress