@UnstableApi 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)
.
限定符和类型 | 方法和说明 |
---|---|
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(java.lang.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
在接口中 ByteBufHolder
Http2GoAwayFrame copy()
ByteBufHolder
ByteBufHolder
.copy
在接口中 ByteBufHolder
Http2GoAwayFrame duplicate()
ByteBufHolder
ByteBufHolder
. Be aware that this will not automatically call ByteBufHolder.retain()
.duplicate
在接口中 ByteBufHolder
Http2GoAwayFrame retainedDuplicate()
ByteBufHolder
ByteBufHolder
. This method returns a retained duplicate unlike ByteBufHolder.duplicate()
.retainedDuplicate
在接口中 ByteBufHolder
ByteBuf.retainedDuplicate()
Http2GoAwayFrame replace(ByteBuf content)
ByteBufHolder
ByteBufHolder
which contains the specified content
.replace
在接口中 ByteBufHolder
Http2GoAwayFrame retain()
ReferenceCounted
1
.retain
在接口中 ByteBufHolder
retain
在接口中 ReferenceCounted
Http2GoAwayFrame retain(int increment)
ReferenceCounted
increment
.retain
在接口中 ByteBufHolder
retain
在接口中 ReferenceCounted
Http2GoAwayFrame touch()
ReferenceCounted
ResourceLeakDetector
. This method is a shortcut to touch(null)
.touch
在接口中 ByteBufHolder
touch
在接口中 ReferenceCounted
Http2GoAwayFrame touch(java.lang.Object hint)
ReferenceCounted
ResourceLeakDetector
.touch
在接口中 ByteBufHolder
touch
在接口中 ReferenceCounted