public static final class HttpConnectionPool.Builder
extends java.lang.Object
HttpConnectionPool
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
HttpConnectionPool |
build()
Builds the configured instance.
|
HttpConnectionPool.Builder |
maxConnections(java.lang.Number maxConnections)
Sets the value of
HttpConnectionPool.getMaxConnections() |
HttpConnectionPool.Builder |
maxPendingRequests(java.lang.Number maxPendingRequests)
Sets the value of
HttpConnectionPool.getMaxPendingRequests() |
public HttpConnectionPool.Builder maxConnections(java.lang.Number maxConnections)
HttpConnectionPool.getMaxConnections()
maxConnections
- The maximum connections in the pool. This parameter is required.this
public HttpConnectionPool.Builder maxPendingRequests(java.lang.Number maxPendingRequests)
HttpConnectionPool.getMaxPendingRequests()
maxPendingRequests
- The maximum pending requests in the pool. This parameter is required.this
public HttpConnectionPool build()
HttpConnectionPool
java.lang.NullPointerException
- if any required attribute was not provided