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) |
namelong errorCode()
int extraStreamIds()
Http2GoAwayFrame setExtraStreamIds(int extraStreamIds)
thisextraStreamIds()int lastStreamId()
-1 else.io.netty.buffer.ByteBuf content()
null, but may
be empty.content in interface io.netty.buffer.ByteBufHolderHttp2GoAwayFrame copy()
copy in interface io.netty.buffer.ByteBufHolderHttp2GoAwayFrame duplicate()
duplicate in interface io.netty.buffer.ByteBufHolderHttp2GoAwayFrame retainedDuplicate()
retainedDuplicate in interface io.netty.buffer.ByteBufHolderHttp2GoAwayFrame replace(io.netty.buffer.ByteBuf content)
replace in interface io.netty.buffer.ByteBufHolderHttp2GoAwayFrame retain()
retain in interface io.netty.buffer.ByteBufHolderretain in interface io.netty.util.ReferenceCountedHttp2GoAwayFrame retain(int increment)
retain in interface io.netty.buffer.ByteBufHolderretain in interface io.netty.util.ReferenceCountedHttp2GoAwayFrame touch()
touch in interface io.netty.buffer.ByteBufHoldertouch in interface io.netty.util.ReferenceCountedHttp2GoAwayFrame touch(Object hint)
touch in interface io.netty.buffer.ByteBufHoldertouch in interface io.netty.util.ReferenceCountedCopyright © 2008–2025 The Netty Project. All rights reserved.