public final class DefaultHttp2GoAwayFrame extends io.netty.buffer.DefaultByteBufHolder implements Http2GoAwayFrame
Http2GoAwayFrame implementation.| Constructor and Description |
|---|
DefaultHttp2GoAwayFrame(Http2Error error)
Equivalent to
new DefaultHttp2GoAwayFrame(error.code()). |
DefaultHttp2GoAwayFrame(Http2Error error,
io.netty.buffer.ByteBuf content) |
DefaultHttp2GoAwayFrame(long errorCode)
Equivalent to
new DefaultHttp2GoAwayFrame(content, Unpooled.EMPTY_BUFFER). |
DefaultHttp2GoAwayFrame(long errorCode,
io.netty.buffer.ByteBuf content)
Construct a new GOAWAY message.
|
| Modifier and Type | Method and Description |
|---|---|
Http2GoAwayFrame |
copy() |
Http2GoAwayFrame |
duplicate() |
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() |
int |
lastStreamId()
Returns the last stream identifier if set, or
-1 else. |
String |
name()
Returns the name of the HTTP/2 frame e.g.
|
Http2GoAwayFrame |
replace(io.netty.buffer.ByteBuf content) |
Http2GoAwayFrame |
retain() |
Http2GoAwayFrame |
retain(int increment) |
Http2GoAwayFrame |
retainedDuplicate() |
Http2GoAwayFrame |
setExtraStreamIds(int extraStreamIds)
Sets the number of IDs to reserve for the receiver to use while GOAWAY is in transit.
|
String |
toString() |
Http2GoAwayFrame |
touch() |
Http2GoAwayFrame |
touch(Object hint) |
content, contentToString, refCnt, release, releaseclone, finalize, getClass, notify, notifyAll, wait, wait, waitcontentpublic DefaultHttp2GoAwayFrame(Http2Error error)
new DefaultHttp2GoAwayFrame(error.code()).error - non-null reason for the go awaypublic DefaultHttp2GoAwayFrame(long errorCode)
new DefaultHttp2GoAwayFrame(content, Unpooled.EMPTY_BUFFER).errorCode - reason for the go awaypublic DefaultHttp2GoAwayFrame(Http2Error error, io.netty.buffer.ByteBuf content)
error - non-null reason for the go awaycontent - non-null debug datapublic DefaultHttp2GoAwayFrame(long errorCode,
io.netty.buffer.ByteBuf content)
errorCode - reason for the go awaycontent - non-null debug datapublic String name()
Http2Framename in interface Http2Framepublic long errorCode()
Http2GoAwayFrameerrorCode in interface Http2GoAwayFramepublic int extraStreamIds()
Http2GoAwayFrameextraStreamIds in interface Http2GoAwayFramepublic Http2GoAwayFrame setExtraStreamIds(int extraStreamIds)
Http2GoAwayFramesetExtraStreamIds in interface Http2GoAwayFramethisHttp2GoAwayFrame.extraStreamIds()public int lastStreamId()
Http2GoAwayFrame-1 else.lastStreamId in interface Http2GoAwayFramepublic Http2GoAwayFrame copy()
copy in interface io.netty.buffer.ByteBufHoldercopy in interface Http2GoAwayFramecopy in class io.netty.buffer.DefaultByteBufHolderpublic Http2GoAwayFrame duplicate()
duplicate in interface io.netty.buffer.ByteBufHolderduplicate in interface Http2GoAwayFrameduplicate in class io.netty.buffer.DefaultByteBufHolderpublic Http2GoAwayFrame retainedDuplicate()
retainedDuplicate in interface io.netty.buffer.ByteBufHolderretainedDuplicate in interface Http2GoAwayFrameretainedDuplicate in class io.netty.buffer.DefaultByteBufHolderpublic Http2GoAwayFrame replace(io.netty.buffer.ByteBuf content)
replace in interface io.netty.buffer.ByteBufHolderreplace in interface Http2GoAwayFramereplace in class io.netty.buffer.DefaultByteBufHolderpublic Http2GoAwayFrame retain()
retain in interface io.netty.buffer.ByteBufHolderretain in interface Http2GoAwayFrameretain in interface io.netty.util.ReferenceCountedretain in class io.netty.buffer.DefaultByteBufHolderpublic Http2GoAwayFrame retain(int increment)
retain in interface io.netty.buffer.ByteBufHolderretain in interface Http2GoAwayFrameretain in interface io.netty.util.ReferenceCountedretain in class io.netty.buffer.DefaultByteBufHolderpublic Http2GoAwayFrame touch()
touch in interface io.netty.buffer.ByteBufHoldertouch in interface Http2GoAwayFrametouch in interface io.netty.util.ReferenceCountedtouch in class io.netty.buffer.DefaultByteBufHolderpublic Http2GoAwayFrame touch(Object hint)
touch in interface io.netty.buffer.ByteBufHoldertouch in interface Http2GoAwayFrametouch in interface io.netty.util.ReferenceCountedtouch in class io.netty.buffer.DefaultByteBufHolderpublic boolean equals(Object o)
equals in class io.netty.buffer.DefaultByteBufHolderpublic int hashCode()
hashCode in class io.netty.buffer.DefaultByteBufHolderpublic String toString()
toString in class io.netty.buffer.DefaultByteBufHolderCopyright © 2008–2025 The Netty Project. All rights reserved.