@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, 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, totalBodyLengthdecoderResult, setDecoderResultrefCnt, release, releasepublic 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()
BinaryMemcacheResponsestatus 在接口中 BinaryMemcacheResponsepublic BinaryMemcacheResponse setStatus(short status)
BinaryMemcacheResponsesetStatus 在接口中 BinaryMemcacheResponsestatus - the status to set.public BinaryMemcacheResponse retain()
ReferenceCounted1.retain 在接口中 BinaryMemcacheMessageretain 在接口中 BinaryMemcacheResponseretain 在接口中 MemcacheMessageretain 在接口中 ReferenceCountedretain 在类中 AbstractBinaryMemcacheMessagepublic BinaryMemcacheResponse retain(int increment)
ReferenceCountedincrement.retain 在接口中 BinaryMemcacheMessageretain 在接口中 BinaryMemcacheResponseretain 在接口中 MemcacheMessageretain 在接口中 ReferenceCountedretain 在类中 AbstractBinaryMemcacheMessagepublic BinaryMemcacheResponse touch()
ReferenceCountedResourceLeakDetector. This method is a shortcut to touch(null).touch 在接口中 BinaryMemcacheMessagetouch 在接口中 BinaryMemcacheResponsetouch 在接口中 MemcacheMessagetouch 在接口中 ReferenceCountedtouch 在类中 AbstractBinaryMemcacheMessagepublic BinaryMemcacheResponse touch(java.lang.Object hint)
ReferenceCountedResourceLeakDetector.touch 在接口中 BinaryMemcacheMessagetouch 在接口中 BinaryMemcacheResponsetouch 在接口中 MemcacheMessagetouch 在接口中 ReferenceCountedtouch 在类中 AbstractBinaryMemcacheMessage