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
    • maxDecodedRstFramesPerWindow

      Http2SettingsSpec.Builder maxDecodedRstFramesPerWindow(int maxDecodedRstFramesPerWindow, int maxDecodedRstFramesSecondsPerWindow)
      Sets the maximum number RST frames that are allowed per window before the connection is closed. This allows to protect against the remote peer flooding us with such frames and so use up a lot of CPU. 0 for any of the parameters means no protection should be applied. For server, the default {code maxDecodedRstFramesPerWindow} is 200 and for the client it is 0. The default {code maxDecodedRstFramesSecondsPerWindow} is 30.
      Parameters:
      maxDecodedRstFramesPerWindow - the maximum number RST frames that are allowed per window
      maxDecodedRstFramesSecondsPerWindow - the maximum seconds per window
      Returns:
      this
      Since:
      1.2.11
    • maxEncodedRstFramesPerWindow

      Http2SettingsSpec.Builder maxEncodedRstFramesPerWindow(int maxEncodedRstFramesPerWindow, int maxEncodedRstFramesSecondsPerWindow)
      Sets the maximum number RST frames that are allowed per window before the connection is closed. This allows to protect against the remote peer that will trigger us to generate a flood of RST frames and so use up a lot of CPU. 0 for any of the parameters means no protection should be applied. For server, the default {code maxEncodedRstFramesPerWindow} is 200 and for the client it is 0. The default {code maxEncodedRstFramesSecondsPerWindow} is 30.
      Parameters:
      maxEncodedRstFramesPerWindow - the maximum number RST frames that are allowed per window
      maxEncodedRstFramesSecondsPerWindow - the maximum seconds per window
      Returns:
      this
      Since:
      1.2.11
    • 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