public abstract static class HttpClientConfiguration.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
abstract HttpClientConfiguration |
build() |
abstract HttpClientConfiguration.Builder |
connectionAcquisitionTimeout(java.lang.Integer millis)
Milliseconds to wait when acquiring a connection from the pool before giving up and timing
out.
|
abstract HttpClientConfiguration.Builder |
connectionMaxIdleTime(java.lang.Integer millis)
Maximum milliseconds a connection should be allowed to remain open while idle.
|
abstract HttpClientConfiguration.Builder |
connectionTimeout(java.lang.Integer millis)
Milliseconds to wait when initially establishing a connection before giving up and timing
out.
|
abstract HttpClientConfiguration.Builder |
connectionTimeToLive(java.lang.Integer millis)
Maximum milliseconds a connection should be allowed to remain open, regardless of usage
frequency.
|
abstract HttpClientConfiguration.Builder |
maxConnections(java.lang.Integer connections)
The maximum number of connections allowed in the connection pool.
|
abstract HttpClientConfiguration.Builder |
readTimeout(java.lang.Integer millis)
Milliseconds to wait for a read on a socket before an exception is thrown.
|
abstract HttpClientConfiguration.Builder |
socketTimeout(java.lang.Integer millis)
Milliseconds to wait for data to be transferred over an established, open connection before
the connection is timed out.
|
abstract HttpClientConfiguration.Builder |
writeTimeout(java.lang.Integer millis)
Milliseconds to wait for a write on a socket before an exception is thrown.
|
public abstract HttpClientConfiguration.Builder connectionAcquisitionTimeout(java.lang.Integer millis)
public abstract HttpClientConfiguration.Builder connectionMaxIdleTime(java.lang.Integer millis)
This will never close a connection that is currently in use, so long-lived connections may remain open longer than this time.
public abstract HttpClientConfiguration.Builder connectionTimeout(java.lang.Integer millis)
public abstract HttpClientConfiguration.Builder connectionTimeToLive(java.lang.Integer millis)
This will never close a connection that is currently in use, so long-lived connections may remain open longer than this time.
public abstract HttpClientConfiguration.Builder socketTimeout(java.lang.Integer millis)
public abstract HttpClientConfiguration.Builder readTimeout(java.lang.Integer millis)
Note: Read timeout is only supported for async clients and ignored otherwise, set socketTimeout(Integer)
()} instead.
public abstract HttpClientConfiguration.Builder writeTimeout(java.lang.Integer millis)
Note: Write timeout is only supported for async clients and ignored otherwise, set socketTimeout(Integer)
()} instead.
public abstract HttpClientConfiguration.Builder maxConnections(java.lang.Integer connections)
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 abstract HttpClientConfiguration build()