public final class Settings extends Object
connection| Modifier and Type | Field and Description |
|---|---|
static int |
COUNT
设置总数
|
| Constructor and Description |
|---|
Settings() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
int |
get(int id)
设置
id的值,如果未设置则返回0 |
boolean |
getEnablePush(boolean defaultValue) |
int |
getHeaderTableSize() |
int |
getInitialWindowSize() |
int |
getMaxConcurrentStreams(int defaultValue) |
int |
getMaxFrameSize(int defaultValue) |
int |
getMaxHeaderListSize(int defaultValue) |
boolean |
isSet(int id)
如果为设置
id分配了一个值,则返回true |
void |
merge(Settings other)
将
other写入其中。如果使用this和other
填充任何设置,则将保留other中的值和标志 |
Settings |
set(int id,
int value) |
int |
size()
具有指定值的设置的大小
|
public static final int COUNT
public void clear()
public Settings set(int id, int value)
public boolean isSet(int id)
id分配了一个值,则返回trueid - 标记public int get(int id)
id的值,如果未设置则返回0id - 标记public int size()
public int getHeaderTableSize()
public boolean getEnablePush(boolean defaultValue)
public int getMaxConcurrentStreams(int defaultValue)
public int getMaxFrameSize(int defaultValue)
public int getMaxHeaderListSize(int defaultValue)
public int getInitialWindowSize()
public void merge(Settings other)
other写入其中。如果使用this和other
填充任何设置,则将保留other中的值和标志other - 设置信息Copyright © 2019. All rights reserved.