Class HttpClientConfiguration.Builder
java.lang.Object
org.apache.beam.sdk.io.aws2.common.HttpClientConfiguration.Builder
- Enclosing class:
HttpClientConfiguration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract HttpClientConfiguration
build()
abstract HttpClientConfiguration.Builder
connectionAcquisitionTimeout
(Integer millis) Milliseconds to wait when acquiring a connection from the pool before giving up and timing out.abstract HttpClientConfiguration.Builder
connectionMaxIdleTime
(Integer millis) Maximum milliseconds a connection should be allowed to remain open while idle.abstract HttpClientConfiguration.Builder
connectionTimeout
(Integer millis) Milliseconds to wait when initially establishing a connection before giving up and timing out.abstract HttpClientConfiguration.Builder
connectionTimeToLive
(Integer millis) Maximum milliseconds a connection should be allowed to remain open, regardless of usage frequency.abstract HttpClientConfiguration.Builder
maxConnections
(Integer connections) The maximum number of connections allowed in the connection pool.abstract HttpClientConfiguration.Builder
readTimeout
(Integer millis) Milliseconds to wait for a read on a socket before an exception is thrown.abstract HttpClientConfiguration.Builder
socketTimeout
(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
(Integer millis) Milliseconds to wait for a write on a socket before an exception is thrown.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
connectionAcquisitionTimeout
Milliseconds to wait when acquiring a connection from the pool before giving up and timing out. -
connectionMaxIdleTime
Maximum milliseconds a connection should be allowed to remain open while idle.This will never close a connection that is currently in use, so long-lived connections may remain open longer than this time.
-
connectionTimeout
Milliseconds to wait when initially establishing a connection before giving up and timing out. A duration of 0 means infinity, and is not recommended. -
connectionTimeToLive
Maximum milliseconds a connection should be allowed to remain open, regardless of usage frequency.This will never close a connection that is currently in use, so long-lived connections may remain open longer than this time.
-
socketTimeout
Milliseconds to wait for data to be transferred over an established, open connection before the connection is timed out. A duration of 0 means infinity, and is not recommended. -
readTimeout
Milliseconds to wait for a read on a socket before an exception is thrown. A duration of 0 means infinity, and is not recommended.Note: Read timeout is only supported for async clients and ignored otherwise, set
socketTimeout(Integer)
()} instead. -
writeTimeout
Milliseconds to wait for a write on a socket before an exception is thrown. A duration of 0 means infinity, and is not recommended.Note: Write timeout is only supported for async clients and ignored otherwise, set
socketTimeout(Integer)
()} instead. -
maxConnections
The maximum number of connections allowed in the connection pool. Each client has its own private connection pool.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.
-
build
-