public void setReadTimeout ( int readTimeout ) { this . client = this . client . newBuilder ( ) . readTimeout ( readTimeout , TimeUnit . MILLISECONDS ) . build ( ) ; }
Sets the underlying read timeout in milliseconds . A value of 0 specifies an infinite timeout .