public void setPerHostConnectionCap(final int cap) {
        Args.positive(cap, "Per host connection cap");
        this.cap.set(cap);
    }
Sets the per-host connection cap.

@param cap the per-host connection cap to be set
@throws IllegalArgumentException if the cap is not positive
httpclient5/src/main/java/org/apache/hc/client5/http/impl/classic/AbstractBackoff.java