Interface Http2Configuration.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Http2Configuration.Builder,
,Http2Configuration> SdkBuilder<Http2Configuration.Builder,
Http2Configuration>
- Enclosing class:
Http2Configuration
public static interface Http2Configuration.Builder
extends CopyableBuilder<Http2Configuration.Builder,Http2Configuration>
-
Method Summary
Modifier and TypeMethodDescriptionhealthCheckPingPeriod
(Duration healthCheckPingPeriod) Sets the period that the Netty client will sendPING
frames to the remote endpoint to check the health of the connection.initialWindowSize
(Integer initialWindowSize) Sets initial window size of a stream.maxStreams
(Long maxStreams) Sets the max number of concurrent streams per connection.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Method Details
-
maxStreams
Sets the max number of concurrent streams per connection.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.
- Parameters:
maxStreams
- Max concurrent HTTP/2 streams per connection.- Returns:
- This builder for method chaining.
-
initialWindowSize
Sets initial window size of a stream. This setting is only respected when the HTTP/2 protocol is used. See https://tools.ietf.org/html/rfc7540#section-6.5.2 for more information about this parameter.- Parameters:
initialWindowSize
- The initial window size of a stream.- Returns:
- This builder for method chaining.
-
healthCheckPingPeriod
Sets the period that the Netty client will sendPING
frames to the remote endpoint to check the health of the connection. The default value isNettyConfiguration.HTTP2_CONNECTION_PING_TIMEOUT_SECONDS
. To disable this feature, set a duration of 0.- Parameters:
healthCheckPingPeriod
- The ping period.- Returns:
- This builder for method chaining.
-