- Type Parameters:
T
- type of the setting
public interface Http2Setting<T>
HTTP/2 setting.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Map
<Integer, Http2Setting<?>> Settings mapped by setting identifier.static final Http2Setting
<Boolean> Setting to enable or disable push.static final Http2Setting
<Long> Setting for header table size.static final Http2Setting
<Long> Setting to define initial window size.static final Http2Setting
<Long> Setting to define maximal number of open streams.static final Http2Setting
<Long> Setting to define maximal frame size.static final Http2Setting
<Long> Setting to define maximal header list size. -
Method Summary
Modifier and TypeMethodDescriptionTyped default value of this setting.int
Setting identifier.read
(BufferData frame) Read setting value from the frame buffer.void
write
(BufferData data, T value) Write setting to the provided buffer.
-
Field Details
-
HEADER_TABLE_SIZE
Setting for header table size. -
ENABLE_PUSH
Setting to enable or disable push. -
MAX_CONCURRENT_STREAMS
Setting to define maximal number of open streams. -
INITIAL_WINDOW_SIZE
Setting to define initial window size. -
MAX_FRAME_SIZE
Setting to define maximal frame size. -
MAX_HEADER_LIST_SIZE
Setting to define maximal header list size. -
BY_ID
Settings mapped by setting identifier.
-
-
Method Details
-
identifier
int identifier()Setting identifier.- Returns:
- identifier
-
defaultValue
T defaultValue()Typed default value of this setting.- Returns:
- default value
-
read
Read setting value from the frame buffer.- Parameters:
frame
- frame buffer- Returns:
- value of setting
-
write
Write setting to the provided buffer.- Parameters:
data
- buffer to write setting tovalue
- value to write
-