Modifier and Type | Method and Description |
---|---|
long |
getConnectionTimeout()
Gets the connection timeout.
|
long |
getWriteTimeout()
Gets the write timeout value.
|
void |
setConnectionTimeout(long timeout)
Sets the connection timeout.
|
void |
setWriteTimeout(long timeout)
Sets the value of the write timeout for blocking write operations.
|
void setWriteTimeout(long timeout) throws ConfigException
Most write operations are non-blocking and are not affected by this timeout.
This constrains the time to write connection responses and the time to write HTTP responses to requests to the web server.
If not specified then a value of 3 seconds is used.
timeout
- value in milliseconds. If this exceeds one hour
(3600000ms) a warning will be logged and the time-out will be set
to one hour.ConfigException
- if unable to set the propertylong getWriteTimeout()
void setConnectionTimeout(long timeout) throws ConfigException
This value constrains the time taken to process the connection request and send the response. This includes the time taken to call any configured authentication handlers and look up location details.
If this is not specified then a value of 5 seconds is used.
timeout
- time in milliseconds. If this exceeds one hour (3600000ms)
a warning will be logged and the timeout will be set to one hour.ConfigException
- if unable to set the propertylong getConnectionTimeout()
Copyright © 2021 Push Technology Ltd. All Rights Reserved.