@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.
|
namerefCnt, release, releaselong errorCode()
int extraStreamIds()
Http2GoAwayFrame setExtraStreamIds(int extraStreamIds)
thisextraStreamIds()int lastStreamId()
-1 else.ByteBuf content()
null, but may
be empty.content 在接口中 ByteBufHolderHttp2GoAwayFrame copy()
ByteBufHolderByteBufHolder.copy 在接口中 ByteBufHolderHttp2GoAwayFrame duplicate()
ByteBufHolderByteBufHolder. Be aware that this will not automatically call ByteBufHolder.retain().duplicate 在接口中 ByteBufHolderHttp2GoAwayFrame retainedDuplicate()
ByteBufHolderByteBufHolder. This method returns a retained duplicate unlike ByteBufHolder.duplicate().retainedDuplicate 在接口中 ByteBufHolderByteBuf.retainedDuplicate()Http2GoAwayFrame replace(ByteBuf content)
ByteBufHolderByteBufHolder which contains the specified content.replace 在接口中 ByteBufHolderHttp2GoAwayFrame retain()
ReferenceCounted1.retain 在接口中 ByteBufHolderretain 在接口中 ReferenceCountedHttp2GoAwayFrame retain(int increment)
ReferenceCountedincrement.retain 在接口中 ByteBufHolderretain 在接口中 ReferenceCountedHttp2GoAwayFrame touch()
ReferenceCountedResourceLeakDetector. This method is a shortcut to touch(null).touch 在接口中 ByteBufHoldertouch 在接口中 ReferenceCountedHttp2GoAwayFrame touch(java.lang.Object hint)
ReferenceCountedResourceLeakDetector.touch 在接口中 ByteBufHoldertouch 在接口中 ReferenceCounted