public interface SpdySettingsFrame extends SpdyFrame
限定符和类型 | 字段和说明 |
---|---|
static int |
SETTINGS_CLIENT_CERTIFICATE_VECTOR_SIZE |
static int |
SETTINGS_CURRENT_CWND |
static int |
SETTINGS_DOWNLOAD_BANDWIDTH |
static int |
SETTINGS_DOWNLOAD_RETRANS_RATE |
static int |
SETTINGS_INITIAL_WINDOW_SIZE |
static int |
SETTINGS_MAX_CONCURRENT_STREAMS |
static int |
SETTINGS_MINOR_VERSION |
static int |
SETTINGS_ROUND_TRIP_TIME |
static int |
SETTINGS_UPLOAD_BANDWIDTH |
限定符和类型 | 方法和说明 |
---|---|
boolean |
clearPreviouslyPersistedSettings()
Returns
true if previously persisted settings should be cleared. |
int |
getValue(int id)
Returns the value of the setting ID.
|
java.util.Set<java.lang.Integer> |
ids()
Returns a
Set of the setting IDs. |
boolean |
isPersisted(int id)
Returns
true if this setting is persisted. |
boolean |
isPersistValue(int id)
Returns
true if this setting should be persisted. |
boolean |
isSet(int id)
Returns
true if the setting ID has a value. |
SpdySettingsFrame |
removeValue(int id)
Removes the value of the setting ID.
|
SpdySettingsFrame |
setClearPreviouslyPersistedSettings(boolean clear)
Sets if previously persisted settings should be cleared.
|
SpdySettingsFrame |
setPersisted(int id,
boolean persisted)
Sets if this setting is persisted.
|
SpdySettingsFrame |
setPersistValue(int id,
boolean persistValue)
Sets if this setting should be persisted.
|
SpdySettingsFrame |
setValue(int id,
int value)
Sets the value of the setting ID.
|
SpdySettingsFrame |
setValue(int id,
int value,
boolean persistVal,
boolean persisted)
Sets the value of the setting ID.
|
static final int SETTINGS_MINOR_VERSION
static final int SETTINGS_UPLOAD_BANDWIDTH
static final int SETTINGS_DOWNLOAD_BANDWIDTH
static final int SETTINGS_ROUND_TRIP_TIME
static final int SETTINGS_MAX_CONCURRENT_STREAMS
static final int SETTINGS_CURRENT_CWND
static final int SETTINGS_DOWNLOAD_RETRANS_RATE
static final int SETTINGS_INITIAL_WINDOW_SIZE
static final int SETTINGS_CLIENT_CERTIFICATE_VECTOR_SIZE
java.util.Set<java.lang.Integer> ids()
Set
of the setting IDs.
The set's iterator will return the IDs in ascending order.boolean isSet(int id)
true
if the setting ID has a value.int getValue(int id)
SpdySettingsFrame setValue(int id, int value)
SpdySettingsFrame setValue(int id, int value, boolean persistVal, boolean persisted)
SpdySettingsFrame removeValue(int id)
boolean isPersistValue(int id)
true
if this setting should be persisted.
Returns false
if this setting should not be persisted
or if the setting ID has no value.SpdySettingsFrame setPersistValue(int id, boolean persistValue)
boolean isPersisted(int id)
true
if this setting is persisted.
Returns false
if this setting should not be persisted
or if the setting ID has no value.SpdySettingsFrame setPersisted(int id, boolean persisted)
boolean clearPreviouslyPersistedSettings()
true
if previously persisted settings should be cleared.SpdySettingsFrame setClearPreviouslyPersistedSettings(boolean clear)