InetSocketAddress remoteAddr, int poolSize) throws IOException {
this.connector = new HandlerSocketConnectorImpl(HSClientBuilderImpl
.getDefaultConfiguration(), commandFactory, poolSize, this);
this.ioHandler = new HandlerSocketHandler(this);
this.connector.setHandler(this.ioHandler);
this.connector.setCodecFactory(new HandlerSocketCodecFactory());
this.connector.setSessionTimeout(-1);
this.connector.setSocketOptions(this.socketOptions);
for (HSClientStateListener listener : this.hsClientStateListeners) {
this.connector
.addStateListener(new HandlerSocketClientStateListenerAdapter(