@UnstableApi public final class Http2Settings extends CharObjectHashMap<java.lang.Long>
CharObjectMap.PrimitiveEntry<V>
DEFAULT_LOAD_FACTOR
Constructor and Description |
---|
Http2Settings() |
Http2Settings(int initialCapacity) |
Http2Settings(int initialCapacity,
float loadFactor) |
Modifier and Type | Method and Description |
---|---|
Http2Settings |
copyFrom(Http2Settings settings)
Clears and then copies the given settings into this object.
|
static Http2Settings |
defaultSettings() |
java.lang.Integer |
getIntValue(char key)
A helper method that returns
Long.intValue() on the return of CharObjectHashMap.get(char) , if present. |
java.lang.Long |
headerTableSize()
Gets the
SETTINGS_HEADER_TABLE_SIZE value. |
Http2Settings |
headerTableSize(long value)
Sets the
SETTINGS_HEADER_TABLE_SIZE value. |
java.lang.Integer |
initialWindowSize()
Gets the
SETTINGS_INITIAL_WINDOW_SIZE value. |
Http2Settings |
initialWindowSize(int value)
Sets the
SETTINGS_INITIAL_WINDOW_SIZE value. |
protected java.lang.String |
keyToString(char key)
Helper method called by
CharObjectHashMap.toString() in order to convert a single map key into a string. |
java.lang.Long |
maxConcurrentStreams()
Gets the
SETTINGS_MAX_CONCURRENT_STREAMS value. |
Http2Settings |
maxConcurrentStreams(long value)
Sets the
SETTINGS_MAX_CONCURRENT_STREAMS value. |
java.lang.Integer |
maxFrameSize()
Gets the
SETTINGS_MAX_FRAME_SIZE value. |
Http2Settings |
maxFrameSize(int value)
Sets the
SETTINGS_MAX_FRAME_SIZE value. |
java.lang.Long |
maxHeaderListSize()
Gets the
SETTINGS_MAX_HEADER_LIST_SIZE value. |
Http2Settings |
maxHeaderListSize(long value)
Sets the
SETTINGS_MAX_HEADER_LIST_SIZE value. |
java.lang.Boolean |
pushEnabled()
Gets the
SETTINGS_ENABLE_PUSH value. |
Http2Settings |
pushEnabled(boolean enabled)
Sets the
SETTINGS_ENABLE_PUSH value. |
java.lang.Long |
put(char key,
java.lang.Long value)
Adds the given setting key/value pair.
|
clear, containsKey, containsKey, containsValue, entries, entrySet, equals, get, get, hashCode, isEmpty, keySet, put, putAll, remove, remove, size, toString, values
public Http2Settings()
public Http2Settings(int initialCapacity, float loadFactor)
public Http2Settings(int initialCapacity)
public java.lang.Long put(char key, java.lang.Long value)
put
in interface CharObjectMap<java.lang.Long>
put
in class CharObjectHashMap<java.lang.Long>
key
- the key of the entry.value
- the value of the entry.null
if there was no previous mapping.java.lang.IllegalArgumentException
- if verification for a standard HTTP/2 setting fails.public java.lang.Long headerTableSize()
SETTINGS_HEADER_TABLE_SIZE
value. If unavailable, returns null
.public Http2Settings headerTableSize(long value)
SETTINGS_HEADER_TABLE_SIZE
value.java.lang.IllegalArgumentException
- if verification of the setting fails.public java.lang.Boolean pushEnabled()
SETTINGS_ENABLE_PUSH
value. If unavailable, returns null
.public Http2Settings pushEnabled(boolean enabled)
SETTINGS_ENABLE_PUSH
value.public java.lang.Long maxConcurrentStreams()
SETTINGS_MAX_CONCURRENT_STREAMS
value. If unavailable, returns null
.public Http2Settings maxConcurrentStreams(long value)
SETTINGS_MAX_CONCURRENT_STREAMS
value.java.lang.IllegalArgumentException
- if verification of the setting fails.public java.lang.Integer initialWindowSize()
SETTINGS_INITIAL_WINDOW_SIZE
value. If unavailable, returns null
.public Http2Settings initialWindowSize(int value)
SETTINGS_INITIAL_WINDOW_SIZE
value.java.lang.IllegalArgumentException
- if verification of the setting fails.public java.lang.Integer maxFrameSize()
SETTINGS_MAX_FRAME_SIZE
value. If unavailable, returns null
.public Http2Settings maxFrameSize(int value)
SETTINGS_MAX_FRAME_SIZE
value.java.lang.IllegalArgumentException
- if verification of the setting fails.public java.lang.Long maxHeaderListSize()
SETTINGS_MAX_HEADER_LIST_SIZE
value. If unavailable, returns null
.public Http2Settings maxHeaderListSize(long value)
SETTINGS_MAX_HEADER_LIST_SIZE
value.java.lang.IllegalArgumentException
- if verification of the setting fails.public Http2Settings copyFrom(Http2Settings settings)
public java.lang.Integer getIntValue(char key)
Long.intValue()
on the return of CharObjectHashMap.get(char)
, if present. Note that
if the range of the value exceeds Integer.MAX_VALUE
, the CharObjectHashMap.get(char)
method should
be used instead to avoid truncation of the value.protected java.lang.String keyToString(char key)
CharObjectHashMap
CharObjectHashMap.toString()
in order to convert a single map key into a string.
This is protected to allow subclasses to override the appearance of a given key.keyToString
in class CharObjectHashMap<java.lang.Long>
public static Http2Settings defaultSettings()
Copyright © 2008–2019 The Netty Project. All rights reserved.