Package org.miaixz.bus.http.metric.http
Class Http2Settings
java.lang.Object
org.miaixz.bus.http.metric.http.Http2Settings
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()intget(int id) 设置id的值,如果未设置则返回0booleangetEnablePush(boolean defaultValue) intintintgetMaxConcurrentStreams(int defaultValue) intgetMaxFrameSize(int defaultValue) intgetMaxHeaderListSize(int defaultValue) booleanisSet(int id) 如果为设置id分配了一个值,则返回truevoidmerge(Http2Settings other) 将other写入其中。set(int id, int value) intsize()具有指定值的设置的大小
-
Field Details
-
COUNT
public static final int COUNT设置总数- See Also:
-
-
Constructor Details
-
Http2Settings
public Http2Settings()
-
-
Method Details
-
clear
public void clear() -
set
-
isSet
public boolean isSet(int id) 如果为设置id分配了一个值,则返回true- Parameters:
id- 标记- Returns:
- the true/false
-
get
public int get(int id) 设置id的值,如果未设置则返回0- Parameters:
id- 标记- Returns:
- the id
-
size
public int size()具有指定值的设置的大小- Returns:
- 设置的大小
-
getHeaderTableSize
public int getHeaderTableSize() -
getEnablePush
public boolean getEnablePush(boolean defaultValue) -
getMaxConcurrentStreams
public int getMaxConcurrentStreams(int defaultValue) -
getMaxFrameSize
public int getMaxFrameSize(int defaultValue) -
getMaxHeaderListSize
public int getMaxHeaderListSize(int defaultValue) -
getInitialWindowSize
public int getInitialWindowSize() -
merge
将other写入其中。如果使用this和other填充任何设置,则将保留other中的值和标志- Parameters:
other- 设置信息
-