- Common ways to obtain ClientBootstrap
private void myMethod () {ClientBootstrap c =
ChannelFactory channelFactory;new ClientBootstrap(channelFactory)
new ClientBootstrap(new NioClientSocketChannelFactory(Executors.newCachedThreadPool(), Executors.newCachedThreadPool()))
new ClientBootstrap(new NioClientSocketChannelFactory(Executors.newSingleThreadExecutor(), Executors.newSingleThreadExecutor()))
- Smart code suggestions by Codota
}
public Socks4ClientBootstrap(InetSocketAddress socksProxyAddr) { this.socksProxyAddr = socksProxyAddr; super.setPipeline(getPipeline()); }
bootstrap.setPipeline(Channels.pipeline( new HttpClientCodec(), new HttpResponseReader()));