public interface Http2GoAwayFrame extends Http2Frame, 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 |
|---|---|
ByteBuf |
content()
Optional debugging information describing cause the GOAWAY.
|
Http2GoAwayFrame |
copy()
Creates a deep copy of this
ByteBufHolder. |
Http2GoAwayFrame |
duplicate()
Duplicates this
ByteBufHolder. |
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(ByteBuf content)
Returns a new
ByteBufHolder which contains the specified content. |
Http2GoAwayFrame |
retain()
Increases the reference count by
1. |
Http2GoAwayFrame |
retain(int increment)
Increases the reference count by the specified
increment. |
Http2GoAwayFrame |
retainedDuplicate()
Duplicates this
ByteBufHolder. |
Http2GoAwayFrame |
setExtraStreamIds(int extraStreamIds)
Sets the number of IDs to reserve for the receiver to use while GOAWAY is in transit.
|
Http2GoAwayFrame |
touch()
Records the current access location of this object for debugging purposes.
|
Http2GoAwayFrame |
touch(Object hint)
Records the current access location of this object with an additional arbitrary information for debugging
purposes.
|
namerefCnt, release, releaselong errorCode()
int extraStreamIds()
Http2GoAwayFrame setExtraStreamIds(int extraStreamIds)
thisextraStreamIds()int lastStreamId()
-1 else.ByteBuf content()
null, but may
be empty.content in interface ByteBufHolderHttp2GoAwayFrame copy()
ByteBufHolderByteBufHolder.copy in interface ByteBufHolderHttp2GoAwayFrame duplicate()
ByteBufHolderByteBufHolder. Be aware that this will not automatically call ByteBufHolder.retain().duplicate in interface ByteBufHolderHttp2GoAwayFrame retainedDuplicate()
ByteBufHolderByteBufHolder. This method returns a retained duplicate unlike ByteBufHolder.duplicate().retainedDuplicate in interface ByteBufHolderByteBuf.retainedDuplicate()Http2GoAwayFrame replace(ByteBuf content)
ByteBufHolderByteBufHolder which contains the specified content.replace in interface ByteBufHolderHttp2GoAwayFrame retain()
ReferenceCounted1.retain in interface ByteBufHolderretain in interface ReferenceCountedHttp2GoAwayFrame retain(int increment)
ReferenceCountedincrement.retain in interface ByteBufHolderretain in interface ReferenceCountedHttp2GoAwayFrame touch()
ReferenceCountedResourceLeakDetector. This method is a shortcut to touch(null).touch in interface ByteBufHoldertouch in interface ReferenceCountedHttp2GoAwayFrame touch(Object hint)
ReferenceCountedResourceLeakDetector.touch in interface ByteBufHoldertouch in interface ReferenceCountedCopyright © 2008–2025 The Netty Project. All rights reserved.