@UnstableApi 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, release
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
content
public 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()
Http2Frame
name
in interface Http2Frame
public long errorCode()
Http2GoAwayFrame
errorCode
in interface Http2GoAwayFrame
public int extraStreamIds()
Http2GoAwayFrame
extraStreamIds
in interface Http2GoAwayFrame
public Http2GoAwayFrame setExtraStreamIds(int extraStreamIds)
Http2GoAwayFrame
setExtraStreamIds
in interface Http2GoAwayFrame
this
Http2GoAwayFrame.extraStreamIds()
public int lastStreamId()
Http2GoAwayFrame
-1
else.lastStreamId
in interface Http2GoAwayFrame
public Http2GoAwayFrame copy()
copy
in interface io.netty.buffer.ByteBufHolder
copy
in interface Http2GoAwayFrame
copy
in class io.netty.buffer.DefaultByteBufHolder
public Http2GoAwayFrame duplicate()
duplicate
in interface io.netty.buffer.ByteBufHolder
duplicate
in interface Http2GoAwayFrame
duplicate
in class io.netty.buffer.DefaultByteBufHolder
public Http2GoAwayFrame retainedDuplicate()
retainedDuplicate
in interface io.netty.buffer.ByteBufHolder
retainedDuplicate
in interface Http2GoAwayFrame
retainedDuplicate
in class io.netty.buffer.DefaultByteBufHolder
public Http2GoAwayFrame replace(io.netty.buffer.ByteBuf content)
replace
in interface io.netty.buffer.ByteBufHolder
replace
in interface Http2GoAwayFrame
replace
in class io.netty.buffer.DefaultByteBufHolder
public Http2GoAwayFrame retain()
retain
in interface io.netty.buffer.ByteBufHolder
retain
in interface Http2GoAwayFrame
retain
in interface io.netty.util.ReferenceCounted
retain
in class io.netty.buffer.DefaultByteBufHolder
public Http2GoAwayFrame retain(int increment)
retain
in interface io.netty.buffer.ByteBufHolder
retain
in interface Http2GoAwayFrame
retain
in interface io.netty.util.ReferenceCounted
retain
in class io.netty.buffer.DefaultByteBufHolder
public Http2GoAwayFrame touch()
touch
in interface io.netty.buffer.ByteBufHolder
touch
in interface Http2GoAwayFrame
touch
in interface io.netty.util.ReferenceCounted
touch
in class io.netty.buffer.DefaultByteBufHolder
public Http2GoAwayFrame touch(Object hint)
touch
in interface io.netty.buffer.ByteBufHolder
touch
in interface Http2GoAwayFrame
touch
in interface io.netty.util.ReferenceCounted
touch
in class io.netty.buffer.DefaultByteBufHolder
public boolean equals(Object o)
equals
in class io.netty.buffer.DefaultByteBufHolder
public int hashCode()
hashCode
in class io.netty.buffer.DefaultByteBufHolder
public String toString()
toString
in class io.netty.buffer.DefaultByteBufHolder
Copyright © 2008–2019 The Netty Project. All rights reserved.