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