Class DefaultHttp2PingFrame

java.lang.Object
io.netty.handler.codec.http2.DefaultHttp2PingFrame
All Implemented Interfaces:
Http2Frame, Http2PingFrame

@UnstableApi public class DefaultHttp2PingFrame extends Object implements Http2PingFrame
The default Http2PingFrame implementation.
  • Field Details

    • content

      private final long content
    • ack

      private final boolean ack
  • Constructor Details

    • DefaultHttp2PingFrame

      public DefaultHttp2PingFrame(long content)
    • DefaultHttp2PingFrame

      public DefaultHttp2PingFrame(long content, boolean ack)
  • Method Details

    • ack

      public boolean ack()
      Description copied from interface: Http2PingFrame
      When true, indicates that this ping is a ping response.
      Specified by:
      ack in interface Http2PingFrame
    • 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 interface Http2Frame
    • content

      public long content()
      Description copied from interface: Http2PingFrame
      Returns the eight byte opaque data.
      Specified by:
      content in interface Http2PingFrame
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object