ChannelFactory channelFactory = new NioClientSocketChannelFactory(ioPool.getBossPool(), ioPool.getWorkerPool());
ThreadFactory workerThreadFactory = daemonThreadsNamed(namePrefix + "-worker-%s");
this.executor = new OrderedMemoryAwareThreadPoolExecutor(asyncConfig.getWorkerThreads(), 0, 0, 30, TimeUnit.SECONDS, workerThreadFactory);
this.executorMBean = new ThreadPoolExecutorMBean(executor);
ClientBootstrap bootstrap;
if (config.getSocksProxy() == null) {
bootstrap = new ClientBootstrap(channelFactory);
}