public class DefaultFullBinaryMemcacheResponse extends DefaultBinaryMemcacheResponse implements FullBinaryMemcacheResponse
FullBinaryMemcacheResponse.RESPONSE_MAGIC_BYTEEMPTY_LAST_CONTENT| Constructor and Description |
|---|
DefaultFullBinaryMemcacheResponse(String key,
ByteBuf extras)
Create a new
DefaultFullBinaryMemcacheResponse with the header, key and extras. |
DefaultFullBinaryMemcacheResponse(String key,
ByteBuf extras,
ByteBuf content)
Create a new
DefaultFullBinaryMemcacheResponse with the header, key, extras and content. |
| Modifier and Type | Method and Description |
|---|---|
ByteBuf |
content()
Return the data which is held by this
ByteBufHolder. |
FullBinaryMemcacheResponse |
copy()
Create a deep copy of this
ByteBufHolder. |
FullBinaryMemcacheResponse |
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. |
FullBinaryMemcacheResponse |
retain()
Increases the reference count by
1. |
FullBinaryMemcacheResponse |
retain(int increment)
Increases the reference count by the specified
increment. |
FullBinaryMemcacheResponse |
touch()
Records the current access location of this object for debugging purposes.
|
FullBinaryMemcacheResponse |
touch(Object hint)
Records the current access location of this object with an additonal arbitrary information for debugging
purposes.
|
setStatus, statuscas, dataType, extras, extrasLength, key, keyLength, magic, opaque, opcode, setCas, setDataType, setExtras, setExtrasLength, setKey, setKeyLength, setMagic, setOpaque, setOpcode, setTotalBodyLength, totalBodyLengthdecoderResult, setDecoderResultclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetStatus, statuscas, dataType, extras, extrasLength, key, keyLength, magic, opaque, opcode, setCas, setDataType, setExtras, setExtrasLength, setKey, setKeyLength, setMagic, setOpaque, setOpcode, setTotalBodyLength, totalBodyLengthpublic DefaultFullBinaryMemcacheResponse(String key, ByteBuf extras)
DefaultFullBinaryMemcacheResponse with the header, key and extras.key - the key to use.extras - the extras to use.public DefaultFullBinaryMemcacheResponse(String key, ByteBuf extras, ByteBuf content)
DefaultFullBinaryMemcacheResponse with the header, key, extras and content.key - the key to use.extras - the extras to use.content - the content of the full request.public ByteBuf content()
ByteBufHolderByteBufHolder.content in interface ByteBufHolderpublic int refCnt()
ReferenceCounted0, it means this object has been deallocated.refCnt in interface ReferenceCountedrefCnt in class AbstractBinaryMemcacheMessagepublic FullBinaryMemcacheResponse retain()
BinaryMemcacheMessage1.retain in interface ByteBufHolderretain in interface BinaryMemcacheMessageretain in interface BinaryMemcacheResponseretain in interface FullBinaryMemcacheResponseretain in interface FullMemcacheMessageretain in interface LastMemcacheContentretain in interface MemcacheContentretain in interface MemcacheMessageretain in interface ReferenceCountedretain in class DefaultBinaryMemcacheResponsepublic FullBinaryMemcacheResponse retain(int increment)
BinaryMemcacheMessageincrement.retain in interface ByteBufHolderretain in interface BinaryMemcacheMessageretain in interface BinaryMemcacheResponseretain in interface FullBinaryMemcacheResponseretain in interface FullMemcacheMessageretain in interface LastMemcacheContentretain in interface MemcacheContentretain in interface MemcacheMessageretain in interface ReferenceCountedretain in class DefaultBinaryMemcacheResponsepublic FullBinaryMemcacheResponse touch()
ReferenceCountedResourceLeakDetector. This method is a shortcut to touch(null).touch in interface ByteBufHoldertouch in interface BinaryMemcacheMessagetouch in interface BinaryMemcacheResponsetouch in interface FullBinaryMemcacheResponsetouch in interface FullMemcacheMessagetouch in interface LastMemcacheContenttouch in interface MemcacheContenttouch in interface MemcacheMessagetouch in interface ReferenceCountedtouch in class DefaultBinaryMemcacheResponsepublic FullBinaryMemcacheResponse touch(Object hint)
ReferenceCountedResourceLeakDetector.touch in interface ByteBufHoldertouch in interface BinaryMemcacheMessagetouch in interface BinaryMemcacheResponsetouch in interface FullBinaryMemcacheResponsetouch in interface FullMemcacheMessagetouch in interface LastMemcacheContenttouch in interface MemcacheContenttouch in interface MemcacheMessagetouch in interface ReferenceCountedtouch in class DefaultBinaryMemcacheResponsepublic boolean release()
ReferenceCounted1 and deallocates this object if the reference count reaches at
0.release in interface ReferenceCountedrelease in class AbstractBinaryMemcacheMessagetrue 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 ReferenceCountedrelease in class AbstractBinaryMemcacheMessagetrue if and only if the reference count became 0 and this object has been deallocatedpublic FullBinaryMemcacheResponse copy()
ByteBufHolderByteBufHolder.copy in interface ByteBufHoldercopy in interface FullBinaryMemcacheResponsecopy in interface FullMemcacheMessagecopy in interface LastMemcacheContentcopy in interface MemcacheContentpublic FullBinaryMemcacheResponse duplicate()
ByteBufHolderByteBufHolder. Be aware that this will not automatically call ByteBufHolder.retain().duplicate in interface ByteBufHolderduplicate in interface FullBinaryMemcacheResponseduplicate in interface FullMemcacheMessageduplicate in interface LastMemcacheContentduplicate in interface MemcacheContentCopyright © 2008–2015 The Netty Project. All rights reserved.