DefaultHttp2GoAwayFrame Class — netty Architecture
Architecture documentation for the DefaultHttp2GoAwayFrame class in DefaultHttp2GoAwayFrame.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 05ed7010_40b8_59a7_47b6_7a6a9307872f["DefaultHttp2GoAwayFrame"] 539f2f91_69ea_1027_c831_6873768b86c6["DefaultHttp2GoAwayFrame.java"] 05ed7010_40b8_59a7_47b6_7a6a9307872f -->|defined in| 539f2f91_69ea_1027_c831_6873768b86c6 07e9c808_8b03_26c3_0c7d_624ae1bef6f7["DefaultHttp2GoAwayFrame()"] 05ed7010_40b8_59a7_47b6_7a6a9307872f -->|method| 07e9c808_8b03_26c3_0c7d_624ae1bef6f7 8d32f4e8_190b_8088_43b1_3cee5cd86d72["String()"] 05ed7010_40b8_59a7_47b6_7a6a9307872f -->|method| 8d32f4e8_190b_8088_43b1_3cee5cd86d72 61a22e20_e243_7ecf_68c5_6a3e1d8ae3c2["errorCode()"] 05ed7010_40b8_59a7_47b6_7a6a9307872f -->|method| 61a22e20_e243_7ecf_68c5_6a3e1d8ae3c2 f4c97007_44b6_c984_0c8b_b56291fab8d8["extraStreamIds()"] 05ed7010_40b8_59a7_47b6_7a6a9307872f -->|method| f4c97007_44b6_c984_0c8b_b56291fab8d8 b7a0c6d5_e6d9_e4d2_d54d_12caad78fb4b["Http2GoAwayFrame()"] 05ed7010_40b8_59a7_47b6_7a6a9307872f -->|method| b7a0c6d5_e6d9_e4d2_d54d_12caad78fb4b fc128e40_d788_7305_637e_489097d7a637["lastStreamId()"] 05ed7010_40b8_59a7_47b6_7a6a9307872f -->|method| fc128e40_d788_7305_637e_489097d7a637 ebe5aa93_f847_906a_ae40_b359f7a05124["equals()"] 05ed7010_40b8_59a7_47b6_7a6a9307872f -->|method| ebe5aa93_f847_906a_ae40_b359f7a05124 62e88c4e_824d_1097_2983_0021e8b1ffe3["hashCode()"] 05ed7010_40b8_59a7_47b6_7a6a9307872f -->|method| 62e88c4e_824d_1097_2983_0021e8b1ffe3
Relationship Graph
Source Code
codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2GoAwayFrame.java lines 28–177
public final class DefaultHttp2GoAwayFrame extends DefaultByteBufHolder implements Http2GoAwayFrame {
private final long errorCode;
private final int lastStreamId;
private int extraStreamIds;
/**
* Equivalent to {@code new DefaultHttp2GoAwayFrame(error.code())}.
*
* @param error non-{@code null} reason for the go away
*/
public DefaultHttp2GoAwayFrame(Http2Error error) {
this(error.code());
}
/**
* Equivalent to {@code new DefaultHttp2GoAwayFrame(content, Unpooled.EMPTY_BUFFER)}.
*
* @param errorCode reason for the go away
*/
public DefaultHttp2GoAwayFrame(long errorCode) {
this(errorCode, Unpooled.EMPTY_BUFFER);
}
/**
*
*
* @param error non-{@code null} reason for the go away
* @param content non-{@code null} debug data
*/
public DefaultHttp2GoAwayFrame(Http2Error error, ByteBuf content) {
this(error.code(), content);
}
/**
* Construct a new GOAWAY message.
*
* @param errorCode reason for the go away
* @param content non-{@code null} debug data
*/
public DefaultHttp2GoAwayFrame(long errorCode, ByteBuf content) {
this(-1, errorCode, content);
}
/**
* Construct a new GOAWAY message.
*
* This constructor is for internal use only. A user should not have to specify a specific last stream identifier,
* but use {@link #setExtraStreamIds(int)} instead.
*/
DefaultHttp2GoAwayFrame(int lastStreamId, long errorCode, ByteBuf content) {
super(content);
this.errorCode = errorCode;
this.lastStreamId = lastStreamId;
}
@Override
public String name() {
return "GOAWAY";
}
@Override
public long errorCode() {
return errorCode;
}
@Override
public int extraStreamIds() {
return extraStreamIds;
}
@Override
public Http2GoAwayFrame setExtraStreamIds(int extraStreamIds) {
checkPositiveOrZero(extraStreamIds, "extraStreamIds");
this.extraStreamIds = extraStreamIds;
return this;
}
@Override
public int lastStreamId() {
return lastStreamId;
Source
Frequently Asked Questions
What is the DefaultHttp2GoAwayFrame class?
DefaultHttp2GoAwayFrame is a class in the netty codebase, defined in codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2GoAwayFrame.java.
Where is DefaultHttp2GoAwayFrame defined?
DefaultHttp2GoAwayFrame is defined in codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2GoAwayFrame.java at line 28.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free