Package io.netty.handler.codec.http2
Interface Http2GoAwayFrame
-
- All Superinterfaces:
io.netty.buffer.ByteBufHolder,Http2Frame,io.netty.util.ReferenceCounted
- All Known Implementing Classes:
DefaultHttp2GoAwayFrame
public interface Http2GoAwayFrame extends Http2Frame, io.netty.buffer.ByteBufHolder
HTTP/2 GOAWAY frame.The last stream identifier must not be set by the application, but instead the relative
extraStreamIds()should be used. ThelastStreamId()will only be set for incoming GOAWAY frames by the HTTP/2 codec.Graceful shutdown as described in the HTTP/2 spec can be accomplished by calling
#setExtraStreamIds(Integer.MAX_VALUE).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description io.netty.buffer.ByteBufcontent()Optional debugging information describing cause the GOAWAY.Http2GoAwayFramecopy()Http2GoAwayFrameduplicate()longerrorCode()The reason for beginning closure of the connection.intextraStreamIds()The number of IDs to reserve for the receiver to use while GOAWAY is in transit.intlastStreamId()Returns the last stream identifier if set, or-1else.Http2GoAwayFramereplace(io.netty.buffer.ByteBuf content)Http2GoAwayFrameretain()Http2GoAwayFrameretain(int increment)Http2GoAwayFrameretainedDuplicate()Http2GoAwayFramesetExtraStreamIds(int extraStreamIds)Sets the number of IDs to reserve for the receiver to use while GOAWAY is in transit.Http2GoAwayFrametouch()Http2GoAwayFrametouch(Object hint)-
Methods inherited from interface io.netty.handler.codec.http2.Http2Frame
name
-
-
-
-
Method Detail
-
errorCode
long errorCode()
The reason for beginning closure of the connection. Represented as an HTTP/2 error code.
-
extraStreamIds
int extraStreamIds()
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.
-
setExtraStreamIds
Http2GoAwayFrame setExtraStreamIds(int extraStreamIds)
Sets the number of IDs to reserve for the receiver to use while GOAWAY is in transit.- Returns:
this- See Also:
extraStreamIds()
-
lastStreamId
int lastStreamId()
Returns the last stream identifier if set, or-1else.
-
content
io.netty.buffer.ByteBuf content()
Optional debugging information describing cause the GOAWAY. Will not benull, but may be empty.- Specified by:
contentin interfaceio.netty.buffer.ByteBufHolder
-
copy
Http2GoAwayFrame copy()
- Specified by:
copyin interfaceio.netty.buffer.ByteBufHolder
-
duplicate
Http2GoAwayFrame duplicate()
- Specified by:
duplicatein interfaceio.netty.buffer.ByteBufHolder
-
retainedDuplicate
Http2GoAwayFrame retainedDuplicate()
- Specified by:
retainedDuplicatein interfaceio.netty.buffer.ByteBufHolder
-
replace
Http2GoAwayFrame replace(io.netty.buffer.ByteBuf content)
- Specified by:
replacein interfaceio.netty.buffer.ByteBufHolder
-
retain
Http2GoAwayFrame retain()
- Specified by:
retainin interfaceio.netty.buffer.ByteBufHolder- Specified by:
retainin interfaceio.netty.util.ReferenceCounted
-
retain
Http2GoAwayFrame retain(int increment)
- Specified by:
retainin interfaceio.netty.buffer.ByteBufHolder- Specified by:
retainin interfaceio.netty.util.ReferenceCounted
-
touch
Http2GoAwayFrame touch()
- Specified by:
touchin interfaceio.netty.buffer.ByteBufHolder- Specified by:
touchin interfaceio.netty.util.ReferenceCounted
-
touch
Http2GoAwayFrame touch(Object hint)
- Specified by:
touchin interfaceio.netty.buffer.ByteBufHolder- Specified by:
touchin interfaceio.netty.util.ReferenceCounted
-
-