@UnstableApi public final class Http2Settings extends <any>
构造器和说明 |
---|
Http2Settings() |
Http2Settings(int initialCapacity) |
Http2Settings(int initialCapacity,
float loadFactor) |
限定符和类型 | 方法和说明 |
---|---|
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 #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) |
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.
|
public Http2Settings()
public Http2Settings(int initialCapacity, float loadFactor)
public Http2Settings(int initialCapacity)
public java.lang.Long put(char key, java.lang.Long value)
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 #get(char)
, if present. Note that
if the range of the value exceeds Integer.MAX_VALUE
, the #get(char)
method should
be used instead to avoid truncation of the value.protected java.lang.String keyToString(char key)
public static Http2Settings defaultSettings()