@UnstableApi public interface Http2GoAwayFrame extends Http2Frame, io.netty.buffer.ByteBufHolder
The last stream identifier must not be set by the application, but instead the
relative extraStreamIds()
should be used. The lastStreamId()
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)
.
Modifier and Type | Method and Description |
---|---|
io.netty.buffer.ByteBuf |
content()
Optional debugging information describing cause the GOAWAY.
|
Http2GoAwayFrame |
copy() |
Http2GoAwayFrame |
duplicate() |
long |
errorCode()
The reason for beginning closure of the connection.
|
int |
extraStreamIds()
The number of IDs to reserve for the receiver to use while GOAWAY is in transit.
|
int |
lastStreamId()
Returns the last stream identifier if set, or
-1 else. |
Http2GoAwayFrame |
replace(io.netty.buffer.ByteBuf content) |
Http2GoAwayFrame |
retain() |
Http2GoAwayFrame |
retain(int increment) |
Http2GoAwayFrame |
retainedDuplicate() |
Http2GoAwayFrame |
setExtraStreamIds(int extraStreamIds)
Sets the number of IDs to reserve for the receiver to use while GOAWAY is in transit.
|
Http2GoAwayFrame |
touch() |
Http2GoAwayFrame |
touch(Object hint) |
name
long errorCode()
int extraStreamIds()
Http2GoAwayFrame setExtraStreamIds(int extraStreamIds)
this
extraStreamIds()
int lastStreamId()
-1
else.io.netty.buffer.ByteBuf content()
null
, but may
be empty.content
in interface io.netty.buffer.ByteBufHolder
Http2GoAwayFrame copy()
copy
in interface io.netty.buffer.ByteBufHolder
Http2GoAwayFrame duplicate()
duplicate
in interface io.netty.buffer.ByteBufHolder
Http2GoAwayFrame retainedDuplicate()
retainedDuplicate
in interface io.netty.buffer.ByteBufHolder
Http2GoAwayFrame replace(io.netty.buffer.ByteBuf content)
replace
in interface io.netty.buffer.ByteBufHolder
Http2GoAwayFrame retain()
retain
in interface io.netty.buffer.ByteBufHolder
retain
in interface io.netty.util.ReferenceCounted
Http2GoAwayFrame retain(int increment)
retain
in interface io.netty.buffer.ByteBufHolder
retain
in interface io.netty.util.ReferenceCounted
Http2GoAwayFrame touch()
touch
in interface io.netty.buffer.ByteBufHolder
touch
in interface io.netty.util.ReferenceCounted
Http2GoAwayFrame touch(Object hint)
touch
in interface io.netty.buffer.ByteBufHolder
touch
in interface io.netty.util.ReferenceCounted
Copyright © 2008–2019 The Netty Project. All rights reserved.