public final class DefaultHttp2GoAwayFrame extends DefaultByteBufHolder implements Http2GoAwayFrame
Http2GoAwayFrame implementation.| Constructor and Description |
|---|
DefaultHttp2GoAwayFrame(Http2Error error)
Equivalent to
new DefaultHttp2GoAwayFrame(error.code()). |
DefaultHttp2GoAwayFrame(Http2Error error,
ByteBuf content)
Equivalent to
new DefaultHttp2GoAwayFrame(error.code(), content). |
DefaultHttp2GoAwayFrame(long errorCode)
Equivalent to
new DefaultHttp2GoAwayFrame(content, Unpooled.EMPTY_BUFFER). |
DefaultHttp2GoAwayFrame(long errorCode,
ByteBuf content)
Construct a new GOAWAY message.
|
| Modifier and Type | Method and Description |
|---|---|
DefaultHttp2GoAwayFrame |
copy()
Create a deep copy of this
ByteBufHolder. |
DefaultHttp2GoAwayFrame |
duplicate()
Duplicate the
ByteBufHolder. |
boolean |
equals(Object o) |
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 |
hashCode() |
DefaultHttp2GoAwayFrame |
retain()
Increases the reference count by
1. |
DefaultHttp2GoAwayFrame |
retain(int increment)
Increases the reference count by the specified
increment. |
DefaultHttp2GoAwayFrame |
setExtraStreamIds(int extraStreamIds)
Sets the number of IDs to reserve for the receiver to use while GOAWAY is in transit.
|
String |
toString() |
DefaultHttp2GoAwayFrame |
touch()
Records the current access location of this object for debugging purposes.
|
DefaultHttp2GoAwayFrame |
touch(Object hint)
Records the current access location of this object with an additonal arbitrary information for debugging
purposes.
|
content, contentToString, refCnt, release, releaseclone, finalize, getClass, notify, notifyAll, wait, wait, waitcontentrefCnt, release, releasepublic DefaultHttp2GoAwayFrame(Http2Error error)
new DefaultHttp2GoAwayFrame(error.code()).error - non-null reason for the go awaypublic DefaultHttp2GoAwayFrame(long errorCode)
new DefaultHttp2GoAwayFrame(content, Unpooled.EMPTY_BUFFER).error - reason for the go awaypublic DefaultHttp2GoAwayFrame(Http2Error error, ByteBuf content)
new DefaultHttp2GoAwayFrame(error.code(), content).error - non-null reason for the go awaycontent - non-null debug datapublic DefaultHttp2GoAwayFrame(long errorCode,
ByteBuf content)
error - reason for the go awaycontent - non-null debug datapublic long errorCode()
Http2GoAwayFrameerrorCode in interface Http2GoAwayFramepublic int extraStreamIds()
Http2GoAwayFrameextraStreamIds in interface Http2GoAwayFramepublic DefaultHttp2GoAwayFrame setExtraStreamIds(int extraStreamIds)
Http2GoAwayFramesetExtraStreamIds in interface Http2GoAwayFramethisHttp2GoAwayFrame.extraStreamIds()public DefaultHttp2GoAwayFrame copy()
ByteBufHolderByteBufHolder.copy in interface ByteBufHoldercopy in interface Http2GoAwayFramecopy in class DefaultByteBufHolderpublic DefaultHttp2GoAwayFrame duplicate()
ByteBufHolderByteBufHolder. Be aware that this will not automatically call ByteBufHolder.retain().duplicate in interface ByteBufHolderduplicate in interface Http2GoAwayFrameduplicate in class DefaultByteBufHolderpublic DefaultHttp2GoAwayFrame retain()
ReferenceCounted1.retain in interface ByteBufHolderretain in interface Http2GoAwayFrameretain in interface ReferenceCountedretain in class DefaultByteBufHolderpublic DefaultHttp2GoAwayFrame retain(int increment)
ReferenceCountedincrement.retain in interface ByteBufHolderretain in interface Http2GoAwayFrameretain in interface ReferenceCountedretain in class DefaultByteBufHolderpublic String toString()
toString in class DefaultByteBufHolderpublic DefaultHttp2GoAwayFrame touch()
ReferenceCountedResourceLeakDetector. This method is a shortcut to touch(null).touch in interface ByteBufHoldertouch in interface Http2GoAwayFrametouch in interface ReferenceCountedtouch in class DefaultByteBufHolderpublic DefaultHttp2GoAwayFrame touch(Object hint)
ReferenceCountedResourceLeakDetector.touch in interface ByteBufHoldertouch in interface Http2GoAwayFrametouch in interface ReferenceCountedtouch in class DefaultByteBufHolderCopyright © 2008–2016 The Netty Project. All rights reserved.