code: public void setConnectTimeout(long connectTimeout, TimeUnit unit) {
          this.connectTimeout = Duration.ofMillis(unit.toMillis(connectTimeout));
      }
docs: Sets the connect timeout in the specified time unit.
  
  @param connectTimeout the connectWait to set
  @param unit           the time unit to set