@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, setDecoderResultrefCnt, release, release, setRefCntclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdecoderResult, setDecoderResultrefCnt, release, releasepublic DefaultMemcacheContent(ByteBuf content)
public ByteBuf content()
ByteBufHolderByteBufHolder.content 在接口中 ByteBufHolderpublic MemcacheContent copy()
ByteBufHolderByteBufHolder.copy 在接口中 ByteBufHoldercopy 在接口中 MemcacheContentpublic MemcacheContent duplicate()
ByteBufHolderByteBufHolder. Be aware that this will not automatically call ByteBufHolder.retain().duplicate 在接口中 ByteBufHolderduplicate 在接口中 MemcacheContentpublic MemcacheContent retainedDuplicate()
ByteBufHolderByteBufHolder. This method returns a retained duplicate unlike ByteBufHolder.duplicate().retainedDuplicate 在接口中 ByteBufHolderretainedDuplicate 在接口中 MemcacheContentByteBuf.retainedDuplicate()public MemcacheContent replace(ByteBuf content)
ByteBufHolderByteBufHolder which contains the specified content.replace 在接口中 ByteBufHolderreplace 在接口中 MemcacheContentpublic MemcacheContent retain()
ReferenceCounted1.retain 在接口中 ByteBufHolderretain 在接口中 MemcacheContentretain 在接口中 ReferenceCountedretain 在类中 AbstractReferenceCountedpublic MemcacheContent retain(int increment)
ReferenceCountedincrement.retain 在接口中 ByteBufHolderretain 在接口中 MemcacheContentretain 在接口中 ReferenceCountedretain 在类中 AbstractReferenceCountedpublic MemcacheContent touch()
ReferenceCountedResourceLeakDetector. This method is a shortcut to touch(null).touch 在接口中 ByteBufHoldertouch 在接口中 MemcacheContenttouch 在接口中 ReferenceCountedtouch 在类中 AbstractReferenceCountedpublic MemcacheContent touch(java.lang.Object hint)
ReferenceCountedResourceLeakDetector.touch 在接口中 ByteBufHoldertouch 在接口中 MemcacheContenttouch 在接口中 ReferenceCountedprotected void deallocate()
AbstractReferenceCountedAbstractReferenceCounted.refCnt() is equals 0.deallocate 在类中 AbstractReferenceCountedpublic java.lang.String toString()
toString 在类中 java.lang.Object