metricEventsListener = new TrackableMetricEventsListener();
strategy = new MaxConnectionsBasedStrategy(1);
clientBootstrap = new Bootstrap().group(new NioEventLoopGroup(4))
.channel(NioSocketChannel.class);
pipelineConfigurator = new PipelineConfiguratorComposite<String, String>(
PipelineConfigurators.textOnlyConfigurator(), new PipelineConfigurator() {
@Override
public void configureNewPipeline(ChannelPipeline pipeline) {
channelCloseListener.reset();
pipeline.addFirst(channelCloseListener);
}