public static interface Http2AllocationStrategy.Builder
| Modifier and Type | Method and Description |
|---|---|
Http2AllocationStrategy |
build()
Build a new
Http2AllocationStrategy |
Http2AllocationStrategy.Builder |
maxConcurrentStreams(long maxConcurrentStreams)
Configures the maximum number of the concurrent streams that can be opened to the remote peer.
|
Http2AllocationStrategy.Builder |
maxConnections(int maxConnections)
Configures the maximum number of live connections to keep in the pool.
|
Http2AllocationStrategy.Builder |
minConnections(int minConnections)
Configures the minimum number of live connections to keep in the pool (can be the best effort).
|
Http2AllocationStrategy build()
Http2AllocationStrategyHttp2AllocationStrategyHttp2AllocationStrategy.Builder maxConcurrentStreams(long maxConcurrentStreams)
-1 - use always the remote peer configuration.maxConcurrentStreams - the maximum number of the concurrent streams that can be opened to the remote peerthisHttp2AllocationStrategy.Builder maxConnections(int maxConnections)
Integer.MAX_VALUE - no upper limit.maxConnections - the maximum number of live connections to keep in the poolthisHttp2AllocationStrategy.Builder minConnections(int minConnections)
0.this