setReceiveTimeout¶
Description
Sets the receive timeout period in milliseconds.
If this value is not explicitly set, the default timeout is 10000 ms.
When a value outside the valid range is specified, it is automatically corrected as follows:
- Values less than 100 are set to 100 ms.
- Values greater than 300000 are set to 300000 ms.
Syntax
public void setReceiveTimeout(int timeout)
Parameter
timeout
An integer representing the receive timeout period (milliseconds).