Class DefaultHttp2GoAwayFrame

    • Constructor Detail

      • DefaultHttp2GoAwayFrame

        public DefaultHttp2GoAwayFrame​(Http2Error error)
        Equivalent to new DefaultHttp2GoAwayFrame(error.code()).
        Parameters:
        error - non-null reason for the go away
      • DefaultHttp2GoAwayFrame

        public DefaultHttp2GoAwayFrame​(long errorCode)
        Equivalent to new DefaultHttp2GoAwayFrame(content, Unpooled.EMPTY_BUFFER).
        Parameters:
        errorCode - reason for the go away
      • DefaultHttp2GoAwayFrame

        public DefaultHttp2GoAwayFrame​(Http2Error error,
                                       io.netty.buffer.ByteBuf content)
        Parameters:
        error - non-null reason for the go away
        content - non-null debug data
      • DefaultHttp2GoAwayFrame

        public DefaultHttp2GoAwayFrame​(long errorCode,
                                       io.netty.buffer.ByteBuf content)
        Construct a new GOAWAY message.
        Parameters:
        errorCode - reason for the go away
        content - non-null debug data
    • Method Detail

      • 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
      • errorCode

        public long errorCode()
        Description copied from interface: Http2GoAwayFrame
        The reason for beginning closure of the connection. Represented as an HTTP/2 error code.
        Specified by:
        errorCode in interface Http2GoAwayFrame
      • extraStreamIds

        public int extraStreamIds()
        Description copied from interface: Http2GoAwayFrame
        The number of IDs to reserve for the receiver to use while GOAWAY is in transit. This allows for new streams currently en route to still be created, up to a point, which allows for very graceful shutdown of both sides.
        Specified by:
        extraStreamIds in interface Http2GoAwayFrame
      • copy

        public Http2GoAwayFrame copy()
        Specified by:
        copy in interface io.netty.buffer.ByteBufHolder
        Specified by:
        copy in interface Http2GoAwayFrame
        Overrides:
        copy in class io.netty.buffer.DefaultByteBufHolder
      • duplicate

        public Http2GoAwayFrame duplicate()
        Specified by:
        duplicate in interface io.netty.buffer.ByteBufHolder
        Specified by:
        duplicate in interface Http2GoAwayFrame
        Overrides:
        duplicate in class io.netty.buffer.DefaultByteBufHolder
      • retainedDuplicate

        public Http2GoAwayFrame retainedDuplicate()
        Specified by:
        retainedDuplicate in interface io.netty.buffer.ByteBufHolder
        Specified by:
        retainedDuplicate in interface Http2GoAwayFrame
        Overrides:
        retainedDuplicate in class io.netty.buffer.DefaultByteBufHolder
      • replace

        public Http2GoAwayFrame replace​(io.netty.buffer.ByteBuf content)
        Specified by:
        replace in interface io.netty.buffer.ByteBufHolder
        Specified by:
        replace in interface Http2GoAwayFrame
        Overrides:
        replace in class io.netty.buffer.DefaultByteBufHolder
      • retain

        public Http2GoAwayFrame retain()
        Specified by:
        retain in interface io.netty.buffer.ByteBufHolder
        Specified by:
        retain in interface Http2GoAwayFrame
        Specified by:
        retain in interface io.netty.util.ReferenceCounted
        Overrides:
        retain in class io.netty.buffer.DefaultByteBufHolder
      • retain

        public Http2GoAwayFrame retain​(int increment)
        Specified by:
        retain in interface io.netty.buffer.ByteBufHolder
        Specified by:
        retain in interface Http2GoAwayFrame
        Specified by:
        retain in interface io.netty.util.ReferenceCounted
        Overrides:
        retain in class io.netty.buffer.DefaultByteBufHolder
      • touch

        public Http2GoAwayFrame touch()
        Specified by:
        touch in interface io.netty.buffer.ByteBufHolder
        Specified by:
        touch in interface Http2GoAwayFrame
        Specified by:
        touch in interface io.netty.util.ReferenceCounted
        Overrides:
        touch in class io.netty.buffer.DefaultByteBufHolder
      • touch

        public Http2GoAwayFrame touch​(Object hint)
        Specified by:
        touch in interface io.netty.buffer.ByteBufHolder
        Specified by:
        touch in interface Http2GoAwayFrame
        Specified by:
        touch in interface io.netty.util.ReferenceCounted
        Overrides:
        touch in class io.netty.buffer.DefaultByteBufHolder
      • equals

        public boolean equals​(Object o)
        Overrides:
        equals in class io.netty.buffer.DefaultByteBufHolder
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class io.netty.buffer.DefaultByteBufHolder
      • toString

        public String toString()
        Overrides:
        toString in class io.netty.buffer.DefaultByteBufHolder