Class TimeoutConfig
-
- All Implemented Interfaces:
public final class TimeoutConfigData class representing the timeout configuration for an HTTP request.
-
-
Field Summary
Fields Modifier and Type Field Description private final LongconnectTimeoutInSecprivate final LongreadTimeoutInSecprivate final LongcallTimeoutInSec
-
Constructor Summary
Constructors Constructor Description TimeoutConfig(Long connectTimeoutInSec, Long readTimeoutInSec, Long callTimeoutInSec)
-
Method Summary
Modifier and Type Method Description final LonggetConnectTimeoutInSec()The timeout for establishing the connection in seconds. final LonggetReadTimeoutInSec()The timeout for reading data from the connection in seconds. final LonggetCallTimeoutInSec()The overall timeout for the call in seconds. -
-
Method Detail
-
getConnectTimeoutInSec
final Long getConnectTimeoutInSec()
The timeout for establishing the connection in seconds.
-
getReadTimeoutInSec
final Long getReadTimeoutInSec()
The timeout for reading data from the connection in seconds.
-
getCallTimeoutInSec
final Long getCallTimeoutInSec()
The overall timeout for the call in seconds. Defaults to 0, meaning no timeout.
-
-
-
-