writeTimeout

Sets the default write timeout for new connections. A value of Duration.INFINITE means no timeout, otherwise values must be between 1 and Integer.MAX_VALUE when converted to milliseconds or an exception will be thrown. The write timeout is applied for individual write IO operations. The default value is 10 seconds.

Parameters

timeout

the write timeout

Throws

if the timeout is invalid