code: public void setTimeout(long connectTimeout, long writeTimeout, long readTimeout) {
      this.httpClient = this.httpClient.newBuilder()
        .connectTimeout(connectTimeout, TimeUnit.MILLISECONDS)
        .writeTimeout(writeTimeout, TimeUnit.MILLISECONDS)
        .readTimeout(readTimeout, TimeUnit.MILLISECONDS)
        .build();
    }
docs: Sets HTTP connect, write and read timeouts.  A value of 0 means no timeout, otherwise values must be between 1 and
  Integer.MAX_VALUE when converted to milliseconds.
  
  </p><b>Example:</b><br>
  <pre>{@code minioClient.setTimeout(TimeUnit.SECONDS.toMillis(10), TimeUnit.SECONDS.toMillis(10),
  TimeUnit.SECONDS.toMillis(30)); }</pre>
  
  @param connectTimeout    HTTP connect timeout in milliseconds.
  @param writeTimeout      HTTP write timeout in milliseconds.
  @param readTimeout       HTTP read timeout in milliseconds.