public abstract class HttpClientConfiguration
extends java.lang.Object
implements java.io.Serializable
All timeouts are configured in milliseconds.
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
HttpClientConfiguration.Builder  | 
| Constructor and Description | 
|---|
HttpClientConfiguration()  | 
| Modifier and Type | Method and Description | 
|---|---|
static HttpClientConfiguration.Builder | 
builder()  | 
abstract java.lang.Integer | 
connectionAcquisitionTimeout()
Milliseconds to wait when acquiring a connection from the pool before giving up and timing out. 
 | 
abstract java.lang.Integer | 
connectionMaxIdleTime()
Maximum milliseconds a connection should be allowed to remain open while idle. 
 | 
abstract java.lang.Integer | 
connectionTimeout()
Milliseconds to wait when initially establishing a connection before giving up and timing out. 
 | 
abstract java.lang.Integer | 
connectionTimeToLive()
Maximum milliseconds a connection should be allowed to remain open, regardless of usage
 frequency. 
 | 
abstract java.lang.Integer | 
maxConnections()
The maximum number of connections allowed in the connection pool. 
 | 
abstract java.lang.Integer | 
readTimeout()
Milliseconds to wait for a read on a socket before an exception is thrown. 
 | 
abstract java.lang.Integer | 
socketTimeout()
Milliseconds to wait for data to be transferred over an established, open connection before the
 connection is timed out. 
 | 
abstract java.lang.Integer | 
writeTimeout()
Milliseconds to wait for a write on a socket before an exception is thrown. 
 | 
@Nullable @Pure public abstract java.lang.Integer connectionAcquisitionTimeout()
@Nullable @Pure public abstract java.lang.Integer connectionMaxIdleTime()
This will never close a connection that is currently in use, so long-lived connections may remain open longer than this time.
@Nullable @Pure public abstract java.lang.Integer connectionTimeout()
@Nullable @Pure public abstract java.lang.Integer connectionTimeToLive()
This will never close a connection that is currently in use, so long-lived connections may remain open longer than this time.
@Nullable @Pure public abstract java.lang.Integer socketTimeout()
@Nullable @Pure public abstract java.lang.Integer readTimeout()
Note: Read timeout is only supported for async clients and ignored otherwise. Use socketTimeout() instead.
@Nullable @Pure public abstract java.lang.Integer writeTimeout()
Note: Write timeout is only supported for async clients and ignored otherwise. Use socketTimeout() instead.
@Nullable @Pure public abstract java.lang.Integer maxConnections()
For asynchronous clients using HTTP/1.1 this corresponds to the maximum number of allowed concurrent requests. When using HTTP/2 the number of connections that will be used depends on the max streams allowed per connection.
public static HttpClientConfiguration.Builder builder()