public final class Http2Settings extends IntObjectHashMap<Long>
IntObjectMap.Entry<V>| 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.
|
Long |
headerTableSize()
Gets the
SETTINGS_HEADER_TABLE_SIZE value. |
Http2Settings |
headerTableSize(int value)
Sets the
SETTINGS_HEADER_TABLE_SIZE value. |
Integer |
initialWindowSize()
Gets the
SETTINGS_INITIAL_WINDOW_SIZE value. |
Http2Settings |
initialWindowSize(int value)
Sets the
SETTINGS_INITIAL_WINDOW_SIZE value. |
protected String |
keyToString(int key)
Helper method called by
IntObjectHashMap.toString() in order to convert a single map key into a string. |
Long |
maxConcurrentStreams()
Gets the
SETTINGS_MAX_CONCURRENT_STREAMS value. |
Http2Settings |
maxConcurrentStreams(long value)
Sets the
SETTINGS_MAX_CONCURRENT_STREAMS value. |
Integer |
maxFrameSize()
Gets the
SETTINGS_MAX_FRAME_SIZE value. |
Http2Settings |
maxFrameSize(int value)
Sets the
SETTINGS_MAX_FRAME_SIZE value. |
Integer |
maxHeaderListSize()
Gets the
SETTINGS_MAX_HEADER_LIST_SIZE value. |
Http2Settings |
maxHeaderListSize(int value)
Sets the
SETTINGS_MAX_HEADER_LIST_SIZE value. |
Boolean |
pushEnabled()
Gets the
SETTINGS_ENABLE_PUSH value. |
Http2Settings |
pushEnabled(boolean enabled)
Sets the
SETTINGS_ENABLE_PUSH value. |
Long |
put(int key,
Long value)
Overrides the superclass method to perform verification of standard HTTP/2 settings.
|
public Http2Settings()
public Http2Settings(int initialCapacity,
float loadFactor)
public Http2Settings(int initialCapacity)
public Long put(int key, Long value)
put in interface IntObjectMap<Long>put in class IntObjectHashMap<Long>key - the key of the entry.value - the value of the entry.null if there was no previous mapping.IllegalArgumentException - if verification of the setting fails.public Long headerTableSize()
SETTINGS_HEADER_TABLE_SIZE value. If unavailable, returns null.public Http2Settings headerTableSize(int value)
SETTINGS_HEADER_TABLE_SIZE value.IllegalArgumentException - if verification of the setting fails.public Boolean pushEnabled()
SETTINGS_ENABLE_PUSH value. If unavailable, returns null.public Http2Settings pushEnabled(boolean enabled)
SETTINGS_ENABLE_PUSH value.public Long maxConcurrentStreams()
SETTINGS_MAX_CONCURRENT_STREAMS value. If unavailable, returns null.public Http2Settings maxConcurrentStreams(long value)
SETTINGS_MAX_CONCURRENT_STREAMS value.IllegalArgumentException - if verification of the setting fails.public Integer initialWindowSize()
SETTINGS_INITIAL_WINDOW_SIZE value. If unavailable, returns null.public Http2Settings initialWindowSize(int value)
SETTINGS_INITIAL_WINDOW_SIZE value.IllegalArgumentException - if verification of the setting fails.public Integer maxFrameSize()
SETTINGS_MAX_FRAME_SIZE value. If unavailable, returns null.public Http2Settings maxFrameSize(int value)
SETTINGS_MAX_FRAME_SIZE value.IllegalArgumentException - if verification of the setting fails.public Integer maxHeaderListSize()
SETTINGS_MAX_HEADER_LIST_SIZE value. If unavailable, returns null.public Http2Settings maxHeaderListSize(int value)
SETTINGS_MAX_HEADER_LIST_SIZE value.IllegalArgumentException - if verification of the setting fails.public Http2Settings copyFrom(Http2Settings settings)
protected String keyToString(int key)
IntObjectHashMapIntObjectHashMap.toString() in order to convert a single map key into a string.keyToString in class IntObjectHashMap<Long>Copyright © 2008–2015 The Netty Project. All rights reserved.