public static interface Http2SettingsSpec.Builder
| Modifier and Type | Method and Description |
|---|---|
Http2SettingsSpec |
build()
Build a new
Http2SettingsSpec. |
Http2SettingsSpec.Builder |
connectProtocolEnabled(boolean connectProtocolEnabled)
Sets the
SETTINGS_ENABLE_CONNECT_PROTOCOL value. |
Http2SettingsSpec.Builder |
headerTableSize(long headerTableSize)
Sets the
SETTINGS_HEADER_TABLE_SIZE value. |
Http2SettingsSpec.Builder |
initialWindowSize(int initialWindowSize)
Sets the
SETTINGS_INITIAL_WINDOW_SIZE value. |
Http2SettingsSpec.Builder |
maxConcurrentStreams(long maxConcurrentStreams)
Sets the
SETTINGS_MAX_CONCURRENT_STREAMS value. |
Http2SettingsSpec.Builder |
maxDecodedRstFramesPerWindow(int maxDecodedRstFramesPerWindow,
int maxDecodedRstFramesSecondsPerWindow)
Sets the maximum number RST frames that are allowed per window before the connection is closed.
|
Http2SettingsSpec.Builder |
maxEncodedRstFramesPerWindow(int maxEncodedRstFramesPerWindow,
int maxEncodedRstFramesSecondsPerWindow)
Sets the maximum number RST frames that are allowed per window before the connection is closed.
|
Http2SettingsSpec.Builder |
maxFrameSize(int maxFrameSize)
Sets the
SETTINGS_MAX_FRAME_SIZE value. |
Http2SettingsSpec.Builder |
maxHeaderListSize(long maxHeaderListSize)
Sets the
SETTINGS_MAX_HEADER_LIST_SIZE value. |
Http2SettingsSpec.Builder |
maxStreams(long maxStreams)
The connection is marked for closing once the number of all-time streams reaches
maxStreams. |
Http2SettingsSpec build()
Http2SettingsSpec.Http2SettingsSpecHttp2SettingsSpec.Builder connectProtocolEnabled(boolean connectProtocolEnabled)
SETTINGS_ENABLE_CONNECT_PROTOCOL value.connectProtocolEnabled - the SETTINGS_ENABLE_CONNECT_PROTOCOL valuethisHttp2SettingsSpec.Builder headerTableSize(long headerTableSize)
SETTINGS_HEADER_TABLE_SIZE value.headerTableSize - the SETTINGS_HEADER_TABLE_SIZE valuethisHttp2SettingsSpec.Builder initialWindowSize(int initialWindowSize)
SETTINGS_INITIAL_WINDOW_SIZE value.initialWindowSize - the SETTINGS_INITIAL_WINDOW_SIZE valuethisHttp2SettingsSpec.Builder maxConcurrentStreams(long maxConcurrentStreams)
SETTINGS_MAX_CONCURRENT_STREAMS value.maxConcurrentStreams - the SETTINGS_MAX_CONCURRENT_STREAMS valuethisHttp2SettingsSpec.Builder maxDecodedRstFramesPerWindow(int maxDecodedRstFramesPerWindow, int maxDecodedRstFramesSecondsPerWindow)
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.maxDecodedRstFramesPerWindow - the maximum number RST frames that are allowed per windowmaxDecodedRstFramesSecondsPerWindow - the maximum seconds per windowthisHttp2SettingsSpec.Builder maxEncodedRstFramesPerWindow(int maxEncodedRstFramesPerWindow, int maxEncodedRstFramesSecondsPerWindow)
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.maxEncodedRstFramesPerWindow - the maximum number RST frames that are allowed per windowmaxEncodedRstFramesSecondsPerWindow - the maximum seconds per windowthisHttp2SettingsSpec.Builder maxFrameSize(int maxFrameSize)
SETTINGS_MAX_FRAME_SIZE value.maxFrameSize - the SETTINGS_MAX_FRAME_SIZE valuethisHttp2SettingsSpec.Builder maxHeaderListSize(long maxHeaderListSize)
SETTINGS_MAX_HEADER_LIST_SIZE value.maxHeaderListSize - the SETTINGS_MAX_HEADER_LIST_SIZE valuethisHttp2SettingsSpec.Builder maxStreams(long maxStreams)
maxStreams.this