@UnstableApi 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(io.netty.buffer.ByteBuf key)
Create a new
DefaultBinaryMemcacheResponse with the header and key. |
DefaultBinaryMemcacheResponse(io.netty.buffer.ByteBuf key,
io.netty.buffer.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() |
BinaryMemcacheResponse |
touch(Object hint) |
cas, dataType, deallocate, extras, extrasLength, key, keyLength, magic, opaque, opcode, setCas, setDataType, setExtras, setKey, setMagic, setOpaque, setOpcode, setTotalBodyLength, totalBodyLengthdecoderResult, setDecoderResultrefCnt, release, release, setRefCntclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcas, dataType, extras, extrasLength, key, keyLength, magic, opaque, opcode, setCas, setDataType, setExtras, setKey, setMagic, setOpaque, setOpcode, setTotalBodyLength, totalBodyLengthpublic static final byte RESPONSE_MAGIC_BYTE
public DefaultBinaryMemcacheResponse()
DefaultBinaryMemcacheResponse with the header only.public DefaultBinaryMemcacheResponse(io.netty.buffer.ByteBuf key)
DefaultBinaryMemcacheResponse with the header and key.key - the key to usepublic DefaultBinaryMemcacheResponse(io.netty.buffer.ByteBuf key,
io.netty.buffer.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 io.netty.util.ReferenceCountedretain in class AbstractBinaryMemcacheMessagepublic BinaryMemcacheResponse retain(int increment)
BinaryMemcacheMessageincrement.retain in interface BinaryMemcacheMessageretain in interface BinaryMemcacheResponseretain in interface MemcacheMessageretain in interface io.netty.util.ReferenceCountedretain in class AbstractBinaryMemcacheMessagepublic BinaryMemcacheResponse touch()
touch in interface BinaryMemcacheMessagetouch in interface BinaryMemcacheResponsetouch in interface MemcacheMessagetouch in interface io.netty.util.ReferenceCountedtouch in class AbstractBinaryMemcacheMessagepublic BinaryMemcacheResponse touch(Object hint)
touch in interface BinaryMemcacheMessagetouch in interface BinaryMemcacheResponsetouch in interface MemcacheMessagetouch in interface io.netty.util.ReferenceCountedtouch in class AbstractBinaryMemcacheMessageCopyright © 2008–2019 The Netty Project. All rights reserved.