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.
|
name
refCnt, release, release
long errorCode()
int extraStreamIds()
Http2GoAwayFrame setExtraStreamIds(int extraStreamIds)
this
extraStreamIds()
int lastStreamId()
-1
else.ByteBuf content()
null
, but may
be empty.content
in interface ByteBufHolder
Http2GoAwayFrame copy()
ByteBufHolder
ByteBufHolder
.copy
in interface ByteBufHolder
Http2GoAwayFrame duplicate()
ByteBufHolder
ByteBufHolder
. Be aware that this will not automatically call ByteBufHolder.retain()
.duplicate
in interface ByteBufHolder
Http2GoAwayFrame retainedDuplicate()
ByteBufHolder
ByteBufHolder
. This method returns a retained duplicate unlike ByteBufHolder.duplicate()
.retainedDuplicate
in interface ByteBufHolder
ByteBuf.retainedDuplicate()
Http2GoAwayFrame replace(ByteBuf content)
ByteBufHolder
ByteBufHolder
which contains the specified content
.replace
in interface ByteBufHolder
Http2GoAwayFrame retain()
ReferenceCounted
1
.retain
in interface ByteBufHolder
retain
in interface ReferenceCounted
Http2GoAwayFrame retain(int increment)
ReferenceCounted
increment
.retain
in interface ByteBufHolder
retain
in interface ReferenceCounted
Http2GoAwayFrame touch()
ReferenceCounted
ResourceLeakDetector
. This method is a shortcut to touch(null)
.touch
in interface ByteBufHolder
touch
in interface ReferenceCounted
Http2GoAwayFrame touch(Object hint)
ReferenceCounted
ResourceLeakDetector
.touch
in interface ByteBufHolder
touch
in interface ReferenceCounted
Copyright © 2008–2024 The Netty Project. All rights reserved.