public Builder setConnectionRequestTimeout(long timeout, ChronoUnit unit) {
            this.configuration.put(ClientConfigProperties.CONNECTION_REQUEST_TIMEOUT.getKey(), String.valueOf(Duration.of(timeout, unit).toMillis()));
            return this;
        }
Set timeout for waiting a free connection from a pool when all connections are leased.
This configuration is important when need to fail fast in high concurrent scenarios.
Default is 10 s.
@param timeout - connection timeout in milliseconds
@param unit - time unit
client-v2/src/main/java/com/clickhouse/client/api/Client.java