public abstract static class HttpRequest.Config
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
HttpRequest.Config.Builder |
Modifier and Type | Field and Description |
---|---|
private static java.time.Duration |
CONNECT_TIMEOUT__DEFAULT |
private static java.time.Duration |
READ_TIMEOUT__DEFAULT |
private static java.time.Duration |
TIMEOUT__DEFAULT |
Constructor and Description |
---|
Config() |
Modifier and Type | Method and Description |
---|---|
static HttpRequest.Config.Builder |
builder() |
abstract java.time.Duration |
connectTimeout()
The timeout for establishing a TCP connection with remote server
|
static HttpRequest.Config |
defaultConfig() |
abstract java.time.Duration |
readTimeout()
The max time between two packets exchange
|
abstract java.time.Duration |
timeout()
The wall time-out for the request, from establishing the connection to closing it.
|
private static final java.time.Duration CONNECT_TIMEOUT__DEFAULT
private static final java.time.Duration TIMEOUT__DEFAULT
private static final java.time.Duration READ_TIMEOUT__DEFAULT
public abstract java.time.Duration connectTimeout()
public abstract java.time.Duration readTimeout()
public abstract java.time.Duration timeout()
public static HttpRequest.Config.Builder builder()
public static HttpRequest.Config defaultConfig()