throw (lastException != null) ? lastException : new IOException("failed to connect");
}
}
public ConnectionParams params(ExecutorService executor) {
return new ConnectionParams(username, password, executor, virtualHost, getClientProperties(),
requestedFrameMax, requestedChannelMax, requestedHeartbeat, shutdownTimeout, saslConfig,
networkRecoveryInterval, topologyRecovery, exceptionHandler, threadFactory);
}