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()
Create a deep copy of this
ByteBufHolder. |
MemcacheContent |
duplicate()
Duplicate the
ByteBufHolder. |
int |
refCnt()
Returns the reference count of this object.
|
boolean |
release()
Decreases the reference count by
1 and deallocates this object if the reference count reaches at
0. |
boolean |
release(int decrement)
Decreases the reference count by the specified
decrement and deallocates this object if the reference
count reaches at 0. |
MemcacheContent |
retain()
Increases the reference count by
1. |
MemcacheContent |
retain(int increment)
Increases the reference count by the specified
increment. |
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 additonal arbitrary information for debugging
purposes.
|
decoderResult, setDecoderResultclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdecoderResult, setDecoderResultpublic 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 int refCnt()
ReferenceCounted0, it means this object has been deallocated.refCnt in interface ReferenceCountedpublic MemcacheContent retain()
ReferenceCounted1.retain in interface ByteBufHolderretain in interface MemcacheContentretain in interface ReferenceCountedpublic MemcacheContent retain(int increment)
ReferenceCountedincrement.retain in interface ByteBufHolderretain in interface MemcacheContentretain in interface ReferenceCountedpublic MemcacheContent touch()
ReferenceCountedResourceLeakDetector. This method is a shortcut to touch(null).touch in interface ByteBufHoldertouch in interface MemcacheContenttouch in interface ReferenceCountedpublic MemcacheContent touch(Object hint)
ReferenceCountedResourceLeakDetector.touch in interface ByteBufHoldertouch in interface MemcacheContenttouch in interface ReferenceCountedpublic boolean release()
ReferenceCounted1 and deallocates this object if the reference count reaches at
0.release in interface ReferenceCountedtrue if and only if the reference count became 0 and this object has been deallocatedpublic boolean release(int decrement)
ReferenceCounteddecrement and deallocates this object if the reference
count reaches at 0.release in interface ReferenceCountedtrue if and only if the reference count became 0 and this object has been deallocatedCopyright © 2008–2015 The Netty Project. All rights reserved.