public static final class HttpServerUpgradeHandler.UpgradeEvent extends java.lang.Object implements ReferenceCounted
Modifier and Type | Method and Description |
---|---|
java.lang.CharSequence |
protocol()
频道已升级到的协议。
|
int |
refCnt()
返回此对象的引用计数。
|
boolean |
release()
通过减小引用计数
1 并且如果所述引用计数达到在将释放该对象
0 。
|
boolean |
release(int decrement)
减小由指定的引用计数
decrement 并且如果所述引用计数达到在将释放该对象
0 。
|
HttpServerUpgradeHandler.UpgradeEvent |
retain()
将引用计数增加
1 。
|
HttpServerUpgradeHandler.UpgradeEvent |
retain(int increment)
按指定的
increment 增加引用计数。
|
java.lang.String |
toString() |
HttpServerUpgradeHandler.UpgradeEvent |
touch()
记录此对象的当前访问位置以进行调试。
|
HttpServerUpgradeHandler.UpgradeEvent |
touch(java.lang.Object hint)
记录此对象的当前访问位置,并附加一些用于调试的任意信息。
|
FullHttpRequest |
upgradeRequest()
获取触发协议升级的请求。
|
public java.lang.CharSequence protocol()
public FullHttpRequest upgradeRequest()
public int refCnt()
ReferenceCounted
0
,则表示此对象已被释放。
refCnt
接口
ReferenceCounted
public HttpServerUpgradeHandler.UpgradeEvent retain()
ReferenceCounted
1
。
retain
在界面
ReferenceCounted
public HttpServerUpgradeHandler.UpgradeEvent retain(int increment)
ReferenceCounted
increment
增加参考计数。
retain
在界面
ReferenceCounted
public HttpServerUpgradeHandler.UpgradeEvent touch()
ReferenceCounted
touch
在界面
ReferenceCounted
public HttpServerUpgradeHandler.UpgradeEvent touch(java.lang.Object hint)
ReferenceCounted
ResourceLeakDetector
提供给您。
touch
在界面
ReferenceCounted
public boolean release()
ReferenceCounted
1
并且如果所述引用计数达到在将释放该对象
0
。
release
接口
ReferenceCounted
true
当且仅当引用计数变为
0
且此对象已被释放
public boolean release(int decrement)
ReferenceCounted
decrement
并且如果所述引用计数达到在将释放该对象
0
。
release
在界面
ReferenceCounted
true
当且仅当引用计数变为
0
且此对象已被释放
public java.lang.String toString()
toString
在课堂上
java.lang.Object
Copyright © 2008–2018 The Netty Project. All rights reserved.