DefaultHttp2PingFrame Class — netty Architecture
Architecture documentation for the DefaultHttp2PingFrame class in DefaultHttp2PingFrame.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD ecdbfdc2_8938_76cb_c9cb_e5c196ea5f63["DefaultHttp2PingFrame"] 72789e46_785d_f748_f668_fd331ae60f81["DefaultHttp2PingFrame.java"] ecdbfdc2_8938_76cb_c9cb_e5c196ea5f63 -->|defined in| 72789e46_785d_f748_f668_fd331ae60f81 9b3e91ea_7abc_1826_e679_13f8f3d511dc["DefaultHttp2PingFrame()"] ecdbfdc2_8938_76cb_c9cb_e5c196ea5f63 -->|method| 9b3e91ea_7abc_1826_e679_13f8f3d511dc 555b12d3_ad1d_d8cf_6492_ba3d1f4fa18e["ack()"] ecdbfdc2_8938_76cb_c9cb_e5c196ea5f63 -->|method| 555b12d3_ad1d_d8cf_6492_ba3d1f4fa18e bd5b610a_216c_dd15_907f_4001745d03fa["String()"] ecdbfdc2_8938_76cb_c9cb_e5c196ea5f63 -->|method| bd5b610a_216c_dd15_907f_4001745d03fa a2f3d14a_c7f6_df90_bf14_ecf0c7f4d615["content()"] ecdbfdc2_8938_76cb_c9cb_e5c196ea5f63 -->|method| a2f3d14a_c7f6_df90_bf14_ecf0c7f4d615 6bd9cf1c_87f8_6885_f848_00c4fc085501["equals()"] ecdbfdc2_8938_76cb_c9cb_e5c196ea5f63 -->|method| 6bd9cf1c_87f8_6885_f848_00c4fc085501 6263d4d8_38e5_7311_07a3_77fe9409dbb6["hashCode()"] ecdbfdc2_8938_76cb_c9cb_e5c196ea5f63 -->|method| 6263d4d8_38e5_7311_07a3_77fe9409dbb6
Relationship Graph
Source Code
codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2PingFrame.java lines 24–73
public class DefaultHttp2PingFrame implements Http2PingFrame {
private final long content;
private final boolean ack;
public DefaultHttp2PingFrame(long content) {
this(content, false);
}
public DefaultHttp2PingFrame(long content, boolean ack) {
this.content = content;
this.ack = ack;
}
@Override
public boolean ack() {
return ack;
}
@Override
public String name() {
return "PING";
}
@Override
public long content() {
return content;
}
@Override
public boolean equals(Object o) {
if (!(o instanceof Http2PingFrame)) {
return false;
}
Http2PingFrame other = (Http2PingFrame) o;
return ack == other.ack() && content == other.content();
}
@Override
public int hashCode() {
int hash = super.hashCode();
hash = hash * 31 + (ack ? 1 : 0);
return hash;
}
@Override
public String toString() {
return StringUtil.simpleClassName(this) + "(content=" + content + ", ack=" + ack + ')';
}
}
Source
Frequently Asked Questions
What is the DefaultHttp2PingFrame class?
DefaultHttp2PingFrame is a class in the netty codebase, defined in codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2PingFrame.java.
Where is DefaultHttp2PingFrame defined?
DefaultHttp2PingFrame is defined in codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2PingFrame.java at line 24.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free