LOG.debug("Creating connector to address: {} using connector: {} timeout: {} millis.", new Object[]{address, connector, timeout});
}
IoHandler ioHandler = new ResponseHandler(getEndpoint());
// connect and wait until the connection is established
ConnectFuture future = connector.connect(address, ioHandler, getEndpoint().getConnectorConfig());
future.join();
session = future.getSession();
}
/**
* Handles response from session writes