@UnstableApi public class DefaultMemcacheContent extends AbstractMemcacheObject implements MemcacheContent
MemcacheContent implementation.| Constructor and Description |
|---|
DefaultMemcacheContent(ByteBuf content)
Creates a new instance with the specified content.
|
| Modifier and Type | Method and Description |
|---|---|
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. |
String |
toString() |
MemcacheContent |
touch()
Records the current access location of this object for debugging purposes.
|
MemcacheContent |
touch(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 in interface ByteBufHolderpublic MemcacheContent copy()
ByteBufHolderByteBufHolder.copy in interface ByteBufHoldercopy in interface MemcacheContentpublic MemcacheContent duplicate()
ByteBufHolderByteBufHolder. Be aware that this will not automatically call ByteBufHolder.retain().duplicate in interface ByteBufHolderduplicate in interface MemcacheContentpublic MemcacheContent retainedDuplicate()
ByteBufHolderByteBufHolder. This method returns a retained duplicate unlike ByteBufHolder.duplicate().retainedDuplicate in interface ByteBufHolderretainedDuplicate in interface MemcacheContentByteBuf.retainedDuplicate()public MemcacheContent replace(ByteBuf content)
ByteBufHolderByteBufHolder which contains the specified content.replace in interface ByteBufHolderreplace in interface MemcacheContentpublic MemcacheContent retain()
ReferenceCounted1.retain in interface ByteBufHolderretain in interface MemcacheContentretain in interface ReferenceCountedretain in class AbstractReferenceCountedpublic MemcacheContent retain(int increment)
ReferenceCountedincrement.retain in interface ByteBufHolderretain in interface MemcacheContentretain in interface ReferenceCountedretain in class AbstractReferenceCountedpublic MemcacheContent touch()
ReferenceCountedResourceLeakDetector. This method is a shortcut to touch(null).touch in interface ByteBufHoldertouch in interface MemcacheContenttouch in interface ReferenceCountedtouch in class AbstractReferenceCountedpublic MemcacheContent touch(Object hint)
ReferenceCountedResourceLeakDetector.touch in interface ByteBufHoldertouch in interface MemcacheContenttouch in interface ReferenceCountedprotected void deallocate()
AbstractReferenceCountedAbstractReferenceCounted.refCnt() is equals 0.deallocate in class AbstractReferenceCountedCopyright © 2008–2025 The Netty Project. All rights reserved.