// Set up the event pipeline factory.
bootstrap.setPipelineFactory(new HotRodClientPipelaneFactory(decoder));
bootstrap.setOption("tcpNoDelay", getTransportFactory().isTcpNoDelay());
// Start the connection attempt.
ChannelFuture future = bootstrap.connect(serverAddress);
// Wait until the connection attempt succeeds or fails.
channel = future.awaitUninterruptibly().getChannel();
if (!future.isSuccess()) {
bootstrap.releaseExternalResources();
throw new TransportException("Could not create netty transport", future.getCause());
}
}