@UnstableApi public class DefaultBinaryMemcacheResponse extends AbstractBinaryMemcacheMessage implements BinaryMemcacheResponse
BinaryMemcacheResponse
.限定符和类型 | 字段和说明 |
---|---|
static byte |
RESPONSE_MAGIC_BYTE
Default magic byte for a request.
|
构造器和说明 |
---|
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. |
限定符和类型 | 方法和说明 |
---|---|
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(java.lang.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
在接口中 BinaryMemcacheResponse
public BinaryMemcacheResponse setStatus(short status)
BinaryMemcacheResponse
setStatus
在接口中 BinaryMemcacheResponse
status
- the status to set.public BinaryMemcacheResponse retain()
ReferenceCounted
1
.retain
在接口中 BinaryMemcacheMessage
retain
在接口中 BinaryMemcacheResponse
retain
在接口中 MemcacheMessage
retain
在接口中 ReferenceCounted
retain
在类中 AbstractBinaryMemcacheMessage
public BinaryMemcacheResponse retain(int increment)
ReferenceCounted
increment
.retain
在接口中 BinaryMemcacheMessage
retain
在接口中 BinaryMemcacheResponse
retain
在接口中 MemcacheMessage
retain
在接口中 ReferenceCounted
retain
在类中 AbstractBinaryMemcacheMessage
public BinaryMemcacheResponse touch()
ReferenceCounted
ResourceLeakDetector
. This method is a shortcut to touch(null)
.touch
在接口中 BinaryMemcacheMessage
touch
在接口中 BinaryMemcacheResponse
touch
在接口中 MemcacheMessage
touch
在接口中 ReferenceCounted
touch
在类中 AbstractBinaryMemcacheMessage
public BinaryMemcacheResponse touch(java.lang.Object hint)
ReferenceCounted
ResourceLeakDetector
.touch
在接口中 BinaryMemcacheMessage
touch
在接口中 BinaryMemcacheResponse
touch
在接口中 MemcacheMessage
touch
在接口中 ReferenceCounted
touch
在类中 AbstractBinaryMemcacheMessage