@UnstableApi public class DefaultMemcacheContent extends AbstractMemcacheObject implements MemcacheContent
MemcacheContent
implementation.构造器和说明 |
---|
DefaultMemcacheContent(ByteBuf content)
Creates a new instance with the specified content.
|
限定符和类型 | 方法和说明 |
---|---|
ByteBuf |
content()
Return the data which is held by this
ByteBufHolder . |
MemcacheContent |
copy()
Creates a deep copy of this
ByteBufHolder . |
protected void |
deallocate()
Called once
AbstractReferenceCounted.refCnt() is equals 0. |
MemcacheContent |
duplicate()
Duplicates this
ByteBufHolder . |
MemcacheContent |
replace(ByteBuf content)
Returns a new
ByteBufHolder which contains the specified content . |
MemcacheContent |
retain()
Increases the reference count by
1 . |
MemcacheContent |
retain(int increment)
Increases the reference count by the specified
increment . |
MemcacheContent |
retainedDuplicate()
Duplicates this
ByteBufHolder . |
java.lang.String |
toString() |
MemcacheContent |
touch()
Records the current access location of this object for debugging purposes.
|
MemcacheContent |
touch(java.lang.Object hint)
Records the current access location of this object with an additional arbitrary information for debugging
purposes.
|
decoderResult, setDecoderResult
refCnt, release, release, setRefCnt
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
decoderResult, setDecoderResult
refCnt, release, release
public DefaultMemcacheContent(ByteBuf content)
public ByteBuf content()
ByteBufHolder
ByteBufHolder
.content
在接口中 ByteBufHolder
public MemcacheContent copy()
ByteBufHolder
ByteBufHolder
.copy
在接口中 ByteBufHolder
copy
在接口中 MemcacheContent
public MemcacheContent duplicate()
ByteBufHolder
ByteBufHolder
. Be aware that this will not automatically call ByteBufHolder.retain()
.duplicate
在接口中 ByteBufHolder
duplicate
在接口中 MemcacheContent
public MemcacheContent retainedDuplicate()
ByteBufHolder
ByteBufHolder
. This method returns a retained duplicate unlike ByteBufHolder.duplicate()
.retainedDuplicate
在接口中 ByteBufHolder
retainedDuplicate
在接口中 MemcacheContent
ByteBuf.retainedDuplicate()
public MemcacheContent replace(ByteBuf content)
ByteBufHolder
ByteBufHolder
which contains the specified 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
ResourceLeakDetector
. This method is a shortcut to touch(null)
.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()
is equals 0.deallocate
在类中 AbstractReferenceCounted
public java.lang.String toString()
toString
在类中 java.lang.Object