@Override
    public final ClickHouseConfig getConfig() {
        lock.readLock().lock();
        try {
            ensureInitialized();
            return config;
        } finally {
            lock.readLock().unlock();
        }
    }
Gets a connection according to the given request.

@param request non-null request
@return non-null connection
@throws CompletionException when error occured
clickhouse-client/src/main/java/com/clickhouse/client/AbstractClient.java