public static interface Http2Configuration.Builder extends CopyableBuilder<Http2Configuration.Builder,Http2Configuration>
Modifier and Type | Method and Description |
---|---|
Http2Configuration.Builder |
healthCheckPingPeriod(Duration healthCheckPingPeriod)
Sets the period that the Netty client will send
PING frames to the remote endpoint to check the
health of the connection. |
Http2Configuration.Builder |
initialWindowSize(Integer initialWindowSize)
Sets initial window size of a stream.
|
Http2Configuration.Builder |
maxStreams(Long maxStreams)
Sets the max number of concurrent streams per connection.
|
copy
applyMutation, build
Http2Configuration.Builder maxStreams(Long maxStreams)
Note that this cannot exceed the value of the MAX_CONCURRENT_STREAMS setting returned by the service. If it does the service setting is used instead.
maxStreams
- Max concurrent HTTP/2 streams per connection.Http2Configuration.Builder initialWindowSize(Integer initialWindowSize)
initialWindowSize
- The initial window size of a stream.Http2Configuration.Builder healthCheckPingPeriod(Duration healthCheckPingPeriod)
PING
frames to the remote endpoint to check the
health of the connection. The default value is NettyConfiguration.HTTP2_CONNECTION_PING_TIMEOUT_SECONDS
. To
disable this feature, set a duration of 0.healthCheckPingPeriod
- The ping period.Copyright © 2022. All rights reserved.