public class DefaultBinaryMemcacheResponse extends AbstractBinaryMemcacheMessage implements BinaryMemcacheResponse
BinaryMemcacheResponse.| Modifier and Type | Field and Description |
|---|---|
static byte |
RESPONSE_MAGIC_BYTE
Default magic byte for a request.
|
| Constructor and Description |
|---|
DefaultBinaryMemcacheResponse()
Create a new
DefaultBinaryMemcacheResponse with the header only. |
DefaultBinaryMemcacheResponse(ByteBuf extras)
Create a new
DefaultBinaryMemcacheResponse with the header and extras. |
DefaultBinaryMemcacheResponse(String key)
Create a new
DefaultBinaryMemcacheResponse with the header and key. |
DefaultBinaryMemcacheResponse(String key,
ByteBuf extras)
Create a new
DefaultBinaryMemcacheResponse with the header, key and extras. |
| Modifier and Type | Method and Description |
|---|---|
BinaryMemcacheResponse |
retain()
Increases the reference count by
1. |
BinaryMemcacheResponse |
retain(int increment)
Increases the reference count by the specified
increment. |
BinaryMemcacheResponse |
setStatus(short status)
Sets the status of the response.
|
short |
status()
Returns the status of the response.
|
BinaryMemcacheResponse |
touch()
Records the current access location of this object for debugging purposes.
|
BinaryMemcacheResponse |
touch(Object hint)
Records the current access location of this object with an additonal arbitrary information for debugging
purposes.
|
cas, dataType, extras, extrasLength, key, keyLength, magic, opaque, opcode, refCnt, release, release, setCas, setDataType, setExtras, setExtrasLength, setKey, setKeyLength, setMagic, setOpaque, setOpcode, setTotalBodyLength, totalBodyLengthdecoderResult, setDecoderResultclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcas, dataType, extras, extrasLength, key, keyLength, magic, opaque, opcode, setCas, setDataType, setExtras, setExtrasLength, setKey, setKeyLength, setMagic, setOpaque, setOpcode, setTotalBodyLength, totalBodyLengthdecoderResult, setDecoderResultrefCnt, release, releasepublic static final byte RESPONSE_MAGIC_BYTE
public DefaultBinaryMemcacheResponse()
DefaultBinaryMemcacheResponse with the header only.public DefaultBinaryMemcacheResponse(String key)
DefaultBinaryMemcacheResponse with the header and key.key - the key to usepublic DefaultBinaryMemcacheResponse(ByteBuf extras)
DefaultBinaryMemcacheResponse with the header and extras.extras - the extras to use.public DefaultBinaryMemcacheResponse(String key, ByteBuf extras)
DefaultBinaryMemcacheResponse with the header, key and extras.key - the key to use.extras - the extras to use.public short status()
BinaryMemcacheResponsestatus in interface BinaryMemcacheResponsepublic BinaryMemcacheResponse setStatus(short status)
BinaryMemcacheResponsesetStatus in interface BinaryMemcacheResponsestatus - the status to set.public BinaryMemcacheResponse retain()
BinaryMemcacheMessage1.retain in interface BinaryMemcacheMessageretain in interface BinaryMemcacheResponseretain in interface MemcacheMessageretain in interface ReferenceCountedretain in class AbstractBinaryMemcacheMessagepublic BinaryMemcacheResponse retain(int increment)
BinaryMemcacheMessageincrement.retain in interface BinaryMemcacheMessageretain in interface BinaryMemcacheResponseretain in interface MemcacheMessageretain in interface ReferenceCountedretain in class AbstractBinaryMemcacheMessagepublic BinaryMemcacheResponse touch()
ReferenceCountedResourceLeakDetector. This method is a shortcut to touch(null).touch in interface BinaryMemcacheMessagetouch in interface BinaryMemcacheResponsetouch in interface MemcacheMessagetouch in interface ReferenceCountedtouch in class AbstractBinaryMemcacheMessagepublic BinaryMemcacheResponse touch(Object hint)
ReferenceCountedResourceLeakDetector.touch in interface BinaryMemcacheMessagetouch in interface BinaryMemcacheResponsetouch in interface MemcacheMessagetouch in interface ReferenceCountedtouch in class AbstractBinaryMemcacheMessageCopyright © 2008–2015 The Netty Project. All rights reserved.