@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(ByteBuf key)
Create a new
DefaultBinaryMemcacheResponse with the header and key. |
DefaultBinaryMemcacheResponse(ByteBuf 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 additional arbitrary information for debugging
purposes.
|
cas, dataType, deallocate, extras, extrasLength, key, keyLength, magic, opaque, opcode, setCas, setDataType, setExtras, setKey, setMagic, setOpaque, setOpcode, setTotalBodyLength, totalBodyLength
decoderResult, setDecoderResult
refCnt, release, release, setRefCnt
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cas, dataType, extras, extrasLength, key, keyLength, magic, opaque, opcode, setCas, setDataType, setExtras, setKey, setMagic, setOpaque, setOpcode, setTotalBodyLength, totalBodyLength
decoderResult, setDecoderResult
refCnt, release, release
public static final byte RESPONSE_MAGIC_BYTE
public DefaultBinaryMemcacheResponse()
DefaultBinaryMemcacheResponse
with the header only.public DefaultBinaryMemcacheResponse(ByteBuf key)
DefaultBinaryMemcacheResponse
with the header and key.key
- the key to use.public DefaultBinaryMemcacheResponse(ByteBuf key, ByteBuf extras)
DefaultBinaryMemcacheResponse
with the header, key and extras.key
- the key to use.extras
- the extras to use.public short status()
BinaryMemcacheResponse
status
in interface BinaryMemcacheResponse
public BinaryMemcacheResponse setStatus(short status)
BinaryMemcacheResponse
setStatus
in interface BinaryMemcacheResponse
status
- the status to set.public BinaryMemcacheResponse retain()
ReferenceCounted
1
.retain
in interface BinaryMemcacheMessage
retain
in interface BinaryMemcacheResponse
retain
in interface MemcacheMessage
retain
in interface ReferenceCounted
retain
in class AbstractBinaryMemcacheMessage
public BinaryMemcacheResponse retain(int increment)
ReferenceCounted
increment
.retain
in interface BinaryMemcacheMessage
retain
in interface BinaryMemcacheResponse
retain
in interface MemcacheMessage
retain
in interface ReferenceCounted
retain
in class AbstractBinaryMemcacheMessage
public BinaryMemcacheResponse touch()
ReferenceCounted
ResourceLeakDetector
. This method is a shortcut to touch(null)
.touch
in interface BinaryMemcacheMessage
touch
in interface BinaryMemcacheResponse
touch
in interface MemcacheMessage
touch
in interface ReferenceCounted
touch
in class AbstractBinaryMemcacheMessage
public BinaryMemcacheResponse touch(Object hint)
ReferenceCounted
ResourceLeakDetector
.touch
in interface BinaryMemcacheMessage
touch
in interface BinaryMemcacheResponse
touch
in interface MemcacheMessage
touch
in interface ReferenceCounted
touch
in class AbstractBinaryMemcacheMessage
Copyright © 2008–2024 The Netty Project. All rights reserved.