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 Details

    • maxStreams

      Http2Configuration.Builder maxStreams(Long 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

      Http2Configuration.Builder initialWindowSize(Integer 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

      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. The default value is NettyConfiguration.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.