- java.lang.Object
-
- io.netty5.handler.codec.http2.DefaultHttp2PingFrame
-
- All Implemented Interfaces:
Http2Frame
,Http2PingFrame
@UnstableApi public class DefaultHttp2PingFrame extends Object implements Http2PingFrame
The defaultHttp2PingFrame
implementation.
-
-
Constructor Summary
Constructors Constructor Description DefaultHttp2PingFrame(long content)
DefaultHttp2PingFrame(long content, boolean ack)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
ack()
Whentrue
, indicates that this ping is a ping response.long
content()
Returns the eight byte opaque data.boolean
equals(Object o)
int
hashCode()
String
name()
Returns the name of the HTTP/2 frame e.g.String
toString()
-
-
-
Method Detail
-
ack
public boolean ack()
Description copied from interface:Http2PingFrame
Whentrue
, indicates that this ping is a ping response.- Specified by:
ack
in interfaceHttp2PingFrame
-
name
public String name()
Description copied from interface:Http2Frame
Returns the name of the HTTP/2 frame e.g. DATA, GOAWAY, etc.- Specified by:
name
in interfaceHttp2Frame
-
content
public long content()
Description copied from interface:Http2PingFrame
Returns the eight byte opaque data.- Specified by:
content
in interfaceHttp2PingFrame
-
-