public void setConnectTimeout ( long connectTimeout , TimeUnit unit ) { this . connectTimeout = Duration . ofMillis ( unit . toMillis ( connectTimeout ) ) ; }
Sets the connect timeout in the specified time unit .