@UnstableApi public final class DefaultHttp2GoAwayFrame extends DefaultByteBufHolder implements Http2GoAwayFrame
Http2GoAwayFrame实现。
| Constructor and Description |
|---|
DefaultHttp2GoAwayFrame(Http2Error error)
相当于
new DefaultHttp2GoAwayFrame(error.code()) 。
|
DefaultHttp2GoAwayFrame(Http2Error error, ByteBuf content) |
DefaultHttp2GoAwayFrame(long errorCode)
相当于
new DefaultHttp2GoAwayFrame(content, Unpooled.EMPTY_BUFFER) 。
|
DefaultHttp2GoAwayFrame(long errorCode, ByteBuf content)
构建一个新的GOAWAY消息。
|
| Modifier and Type | Method and Description |
|---|---|
Http2GoAwayFrame |
copy()
创建此 ByteBufHolder的深层副本。
|
Http2GoAwayFrame |
duplicate()
重复此 ByteBufHolder 。
|
boolean |
equals(java.lang.Object o) |
long |
errorCode()
开始关闭连接的原因。
|
int |
extraStreamIds()
GOAWAY在运输过程中为接收器预留的ID的数量。
|
int |
hashCode() |
int |
lastStreamId()
返回最后一个流标识符(如果已设置),或
-1其他
-1 。
|
java.lang.String |
name()
返回HTTP / 2帧的名称,例如
|
Http2GoAwayFrame |
replace(ByteBuf content)
返回一个新 ByteBufHolder包含指定content 。
|
Http2GoAwayFrame |
retain()
将引用计数增加
1 。
|
Http2GoAwayFrame |
retain(int increment)
增加参考计数
increment 。
|
Http2GoAwayFrame |
retainedDuplicate()
重复此 ByteBufHolder 。
|
Http2GoAwayFrame |
setExtraStreamIds(int extraStreamIds)
设置接收器在GOAWAY传输过程中使用的ID的数量。
|
java.lang.String |
toString() |
Http2GoAwayFrame |
touch()
记录此对象的当前访问位置以进行调试。
|
Http2GoAwayFrame |
touch(java.lang.Object hint)
记录此对象的当前访问位置,并附加一些用于调试的任意信息。
|
content, contentToString, refCnt, release, releaseclone, finalize, getClass, notify, notifyAll, wait, wait, waitcontentrefCnt, release, releasepublic DefaultHttp2GoAwayFrame(Http2Error error)
new DefaultHttp2GoAwayFrame(error.code()) 。
error - 非
null原因
public DefaultHttp2GoAwayFrame(long errorCode)
new DefaultHttp2GoAwayFrame(content, Unpooled.EMPTY_BUFFER) 。
errorCode - 离开的原因
public DefaultHttp2GoAwayFrame(Http2Error error, ByteBuf content)
error - 非
null原因
content - 非
null调试数据
public DefaultHttp2GoAwayFrame(long errorCode,
ByteBuf content)
errorCode - 离开的原因
content - 非
null调试数据
public java.lang.String name()
Http2Frame复制的描述
name接口
Http2Frame
public long errorCode()
Http2GoAwayFrame
errorCode在界面
Http2GoAwayFrame
public int extraStreamIds()
Http2GoAwayFrame复制的描述
extraStreamIds在界面
Http2GoAwayFrame
public Http2GoAwayFrame setExtraStreamIds(int extraStreamIds)
Http2GoAwayFrame
setExtraStreamIds在界面
Http2GoAwayFrame
this
Http2GoAwayFrame.extraStreamIds()
public int lastStreamId()
Http2GoAwayFrame
-1 。
lastStreamId ,界面
Http2GoAwayFrame
public Http2GoAwayFrame copy()
DefaultByteBufHolder
ByteBufHolder的深层副本。
此方法默认调用replace(content().copy()) 。
copy ,界面
ByteBufHolder
copy在界面
Http2GoAwayFrame
copy在课程
DefaultByteBufHolder
public Http2GoAwayFrame duplicate()
DefaultByteBufHolder
duplicate在界面
ByteBufHolder
duplicate在界面
Http2GoAwayFrame
duplicate在课堂上
DefaultByteBufHolder
public Http2GoAwayFrame retainedDuplicate()
DefaultByteBufHolder
ByteBufHolder 。
与ByteBufHolder.duplicate()不同,此方法返回保留的副本。
此方法默认调用replace(content().retainedDuplicate()) 。
retainedDuplicate在界面
ByteBufHolder
retainedDuplicate在界面
Http2GoAwayFrame
retainedDuplicate在课程
DefaultByteBufHolder
ByteBuf.retainedDuplicate()
public Http2GoAwayFrame replace(ByteBuf content)
DefaultByteBufHolder
ByteBufHolder包含指定content 。
重写此方法以返回其内容设置为指定content的此对象的新实例。 的默认实现DefaultByteBufHolder.copy() , DefaultByteBufHolder.duplicate()和DefaultByteBufHolder.retainedDuplicate()调用此方法来创建一个副本。
replace ,界面
ByteBufHolder
replace ,界面
Http2GoAwayFrame
replace在课堂上
DefaultByteBufHolder
public Http2GoAwayFrame retain()
ReferenceCounted
1 。
retain ,界面
ByteBufHolder
retain接口
Http2GoAwayFrame
retain在界面
ReferenceCounted
retain在课堂
DefaultByteBufHolder
public Http2GoAwayFrame retain(int increment)
ReferenceCounted复制的描述
increment 。
retain ,界面
ByteBufHolder
retain ,界面
Http2GoAwayFrame
retain在界面
ReferenceCounted
retain在课堂上
DefaultByteBufHolder
public Http2GoAwayFrame touch()
ReferenceCounted
touch在界面
ByteBufHolder
touch在界面
Http2GoAwayFrame
touch在界面
ReferenceCounted
touch在课堂上
DefaultByteBufHolder
public Http2GoAwayFrame touch(java.lang.Object hint)
ReferenceCounted复制的描述
ResourceLeakDetector提供给您。
touch在界面
ByteBufHolder
touch接口
Http2GoAwayFrame
touch ,界面
ReferenceCounted
touch在课堂
DefaultByteBufHolder
public boolean equals(java.lang.Object o)
equals在课堂
DefaultByteBufHolder
public int hashCode()
public java.lang.String toString()
toString在课堂
DefaultByteBufHolder
Copyright © 2008–2018 The Netty Project. All rights reserved.