@UnstableApi public class DefaultMemcacheContent extends AbstractMemcacheObject implements MemcacheContent
MemcacheContent实现。
| Constructor and Description |
|---|
DefaultMemcacheContent(ByteBuf content)
用指定的内容创建一个新实例。
|
| Modifier and Type | Method and Description |
|---|---|
ByteBuf |
content()
返回这个 ByteBufHolder所持有的数据。
|
MemcacheContent |
copy()
创建此 ByteBufHolder的深层副本。
|
protected void |
deallocate()
一次调用
AbstractReferenceCounted.refCnt()等于0。
|
MemcacheContent |
duplicate()
重复此 ByteBufHolder 。
|
MemcacheContent |
replace(ByteBuf content)
返回一个新 ByteBufHolder包含指定content 。
|
MemcacheContent |
retain()
将引用计数增加
1 。
|
MemcacheContent |
retain(int increment)
将参考计数增加指定的
increment 。
|
MemcacheContent |
retainedDuplicate()
重复此 ByteBufHolder 。
|
java.lang.String |
toString() |
MemcacheContent |
touch()
记录此对象的当前访问位置以进行调试。
|
MemcacheContent |
touch(java.lang.Object hint)
记录此对象的当前访问位置,并附加一些用于调试的任意信息。
|
decoderResult, setDecoderResultrefCnt, release, release, setRefCntclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdecoderResult, setDecoderResultrefCnt, release, releasepublic DefaultMemcacheContent(ByteBuf content)
public ByteBuf content()
ByteBufHolder
ByteBufHolder所持有的数据。
content ,界面
ByteBufHolder
public MemcacheContent copy()
ByteBufHolder
ByteBufHolder的深层副本。
copy在界面
ByteBufHolder
copy在界面
MemcacheContent
public MemcacheContent duplicate()
ByteBufHolder
ByteBufHolder 。
请注意,这不会自动调用ByteBufHolder.retain() 。
duplicate在界面
ByteBufHolder
duplicate在界面
MemcacheContent
public MemcacheContent retainedDuplicate()
ByteBufHolder
ByteBufHolder 。
此方法返回一个保留的重复,不像ByteBufHolder.duplicate() 。
retainedDuplicate ,界面
ByteBufHolder
retainedDuplicate在界面
MemcacheContent
ByteBuf.retainedDuplicate()
public MemcacheContent replace(ByteBuf content)
ByteBufHolder复制的描述
ByteBufHolder包含指定content 。
replace在界面
ByteBufHolder
replace在界面
MemcacheContent
public MemcacheContent retain()
ReferenceCounted复制的描述
1 。
retain在界面
ByteBufHolder
retain在界面
MemcacheContent
retain在界面
ReferenceCounted
retain在课堂上
AbstractReferenceCounted
public MemcacheContent retain(int increment)
ReferenceCounted复制的描述
increment增加引用计数。
retain在界面
ByteBufHolder
retain在界面
MemcacheContent
retain在界面
ReferenceCounted
retain在课堂上
AbstractReferenceCounted
public MemcacheContent touch()
ReferenceCounted
touch在界面
ByteBufHolder
touch在界面
MemcacheContent
touch在界面
ReferenceCounted
touch在课堂上
AbstractReferenceCounted
public MemcacheContent touch(java.lang.Object hint)
ReferenceCounted
ResourceLeakDetector提供给您。
touch ,界面
ByteBufHolder
touch接口
MemcacheContent
touch在界面
ReferenceCounted
protected void deallocate()
AbstractReferenceCounted
AbstractReferenceCounted.refCnt()等于0。
deallocate在课堂上
AbstractReferenceCounted
public java.lang.String toString()
toString在课堂上
java.lang.Object
Copyright © 2008–2018 The Netty Project. All rights reserved.