Interface Http2SettingsSpec.Builder

Enclosing class:
Http2SettingsSpec

public static interface Http2SettingsSpec.Builder
  • Method Details

    • build

      Build a new Http2SettingsSpec.
      Returns:
      a new Http2SettingsSpec
    • connectProtocolEnabled

      Http2SettingsSpec.Builder connectProtocolEnabled(boolean connectProtocolEnabled)
      Sets the SETTINGS_ENABLE_CONNECT_PROTOCOL value.
      Parameters:
      connectProtocolEnabled - the SETTINGS_ENABLE_CONNECT_PROTOCOL value
      Returns:
      this
      Since:
      1.2.5
    • headerTableSize

      Http2SettingsSpec.Builder headerTableSize(long headerTableSize)
      Sets the SETTINGS_HEADER_TABLE_SIZE value.
      Parameters:
      headerTableSize - the SETTINGS_HEADER_TABLE_SIZE value
      Returns:
      this
    • initialWindowSize

      Http2SettingsSpec.Builder initialWindowSize(int initialWindowSize)
      Sets the SETTINGS_INITIAL_WINDOW_SIZE value.
      Parameters:
      initialWindowSize - the SETTINGS_INITIAL_WINDOW_SIZE value
      Returns:
      this
    • maxConcurrentStreams

      Http2SettingsSpec.Builder maxConcurrentStreams(long maxConcurrentStreams)
      Sets the SETTINGS_MAX_CONCURRENT_STREAMS value.
      Parameters:
      maxConcurrentStreams - the SETTINGS_MAX_CONCURRENT_STREAMS value
      Returns:
      this
    • maxFrameSize

      Http2SettingsSpec.Builder maxFrameSize(int maxFrameSize)
      Sets the SETTINGS_MAX_FRAME_SIZE value.
      Parameters:
      maxFrameSize - the SETTINGS_MAX_FRAME_SIZE value
      Returns:
      this
    • maxHeaderListSize

      Http2SettingsSpec.Builder maxHeaderListSize(long maxHeaderListSize)
      Sets the SETTINGS_MAX_HEADER_LIST_SIZE value.
      Parameters:
      maxHeaderListSize - the SETTINGS_MAX_HEADER_LIST_SIZE value
      Returns:
      this
    • maxStreams

      Http2SettingsSpec.Builder maxStreams(long maxStreams)
      The connection is marked for closing once the number of all-time streams reaches maxStreams.
      Returns:
      this
      Since:
      1.0.33