@UnstableApi public abstract class AbstractBinaryMemcacheMessage extends AbstractMemcacheObject implements BinaryMemcacheMessage
BinaryMemcacheMessage.| 限定符 | 构造器和说明 |
|---|---|
protected |
AbstractBinaryMemcacheMessage(ByteBuf key,
ByteBuf extras)
Create a new instance with all properties set.
|
| 限定符和类型 | 方法和说明 |
|---|---|
long |
cas()
Returns the CAS identifier.
|
byte |
dataType()
Returns the data type of the message.
|
protected void |
deallocate()
Called once
AbstractReferenceCounted.refCnt() is equals 0. |
ByteBuf |
extras()
Returns a
ByteBuf representation of the optional extras. |
byte |
extrasLength()
Return the extras length of the message.
|
ByteBuf |
key()
Returns the optional key of the document.
|
short |
keyLength()
Returns the key length of the message.
|
byte |
magic()
Returns the magic byte for the message.
|
int |
opaque()
Returns the opaque value.
|
byte |
opcode()
Returns the opcode for the message.
|
BinaryMemcacheMessage |
retain()
Increases the reference count by
1. |
BinaryMemcacheMessage |
retain(int increment)
Increases the reference count by the specified
increment. |
BinaryMemcacheMessage |
setCas(long cas)
Sets the CAS identifier.
|
BinaryMemcacheMessage |
setDataType(byte dataType)
Sets the data type of the message.
|
BinaryMemcacheMessage |
setExtras(ByteBuf extras)
Sets the extras buffer on the message.
|
BinaryMemcacheMessage |
setKey(ByteBuf key)
Sets the key of the document.
|
BinaryMemcacheMessage |
setMagic(byte magic)
Sets the magic byte.
|
BinaryMemcacheMessage |
setOpaque(int opaque)
Sets the opaque value.
|
BinaryMemcacheMessage |
setOpcode(byte opcode)
Sets the opcode for the message.
|
BinaryMemcacheMessage |
setTotalBodyLength(int totalBodyLength)
Sets the total body length.
|
int |
totalBodyLength()
Returns the total body length.
|
BinaryMemcacheMessage |
touch()
Records the current access location of this object for debugging purposes.
|
BinaryMemcacheMessage |
touch(java.lang.Object hint)
Records the current access location of this object with an additional arbitrary information for debugging
purposes.
|
decoderResult, setDecoderResultrefCnt, release, release, setRefCntclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdecoderResult, setDecoderResultrefCnt, release, releasepublic ByteBuf key()
BinaryMemcacheMessagekey 在接口中 BinaryMemcacheMessagepublic ByteBuf extras()
BinaryMemcacheMessageByteBuf representation of the optional extras.extras 在接口中 BinaryMemcacheMessagepublic BinaryMemcacheMessage setKey(ByteBuf key)
BinaryMemcacheMessageReferenceCounted.release() ownership of key
is transferred to this BinaryMemcacheMessage.setKey 在接口中 BinaryMemcacheMessagekey - the key of the message. ReferenceCounted.release() ownership is transferred
to this BinaryMemcacheMessage.public BinaryMemcacheMessage setExtras(ByteBuf extras)
BinaryMemcacheMessageReferenceCounted.release() ownership of extras
is transferred to this BinaryMemcacheMessage.setExtras 在接口中 BinaryMemcacheMessageextras - the extras buffer of the document. ReferenceCounted.release() ownership is transferred
to this BinaryMemcacheMessage.public byte magic()
BinaryMemcacheMessagemagic 在接口中 BinaryMemcacheMessagepublic BinaryMemcacheMessage setMagic(byte magic)
BinaryMemcacheMessagesetMagic 在接口中 BinaryMemcacheMessagemagic - the magic byte to use.for typesafe opcodes.public long cas()
BinaryMemcacheMessagecas 在接口中 BinaryMemcacheMessagepublic BinaryMemcacheMessage setCas(long cas)
BinaryMemcacheMessagesetCas 在接口中 BinaryMemcacheMessagecas - the CAS identifier to use.public int opaque()
BinaryMemcacheMessageopaque 在接口中 BinaryMemcacheMessagepublic BinaryMemcacheMessage setOpaque(int opaque)
BinaryMemcacheMessagesetOpaque 在接口中 BinaryMemcacheMessageopaque - the opaque value to use.public int totalBodyLength()
BinaryMemcacheMessagetotalBodyLength 在接口中 BinaryMemcacheMessagepublic BinaryMemcacheMessage setTotalBodyLength(int totalBodyLength)
BinaryMemcacheMessagesetTotalBodyLength 在接口中 BinaryMemcacheMessagetotalBodyLength - the total body length.public byte dataType()
BinaryMemcacheMessagedataType 在接口中 BinaryMemcacheMessagepublic BinaryMemcacheMessage setDataType(byte dataType)
BinaryMemcacheMessagesetDataType 在接口中 BinaryMemcacheMessagedataType - the data type of the message.public byte extrasLength()
BinaryMemcacheMessageextrasLength 在接口中 BinaryMemcacheMessagepublic short keyLength()
BinaryMemcacheMessagekeyLength 在接口中 BinaryMemcacheMessagepublic byte opcode()
BinaryMemcacheMessageopcode 在接口中 BinaryMemcacheMessagepublic BinaryMemcacheMessage setOpcode(byte opcode)
BinaryMemcacheMessagesetOpcode 在接口中 BinaryMemcacheMessageopcode - the opcode to use.public BinaryMemcacheMessage retain()
ReferenceCounted1.retain 在接口中 BinaryMemcacheMessageretain 在接口中 MemcacheMessageretain 在接口中 ReferenceCountedretain 在类中 AbstractReferenceCountedpublic BinaryMemcacheMessage retain(int increment)
ReferenceCountedincrement.retain 在接口中 BinaryMemcacheMessageretain 在接口中 MemcacheMessageretain 在接口中 ReferenceCountedretain 在类中 AbstractReferenceCountedprotected void deallocate()
AbstractReferenceCountedAbstractReferenceCounted.refCnt() is equals 0.deallocate 在类中 AbstractReferenceCountedpublic BinaryMemcacheMessage touch()
ReferenceCountedResourceLeakDetector. This method is a shortcut to touch(null).touch 在接口中 BinaryMemcacheMessagetouch 在接口中 MemcacheMessagetouch 在接口中 ReferenceCountedtouch 在类中 AbstractReferenceCountedpublic BinaryMemcacheMessage touch(java.lang.Object hint)
ReferenceCountedResourceLeakDetector.touch 在接口中 BinaryMemcacheMessagetouch 在接口中 MemcacheMessagetouch 在接口中 ReferenceCounted