@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, setDecoderResult
refCnt, release, release, setRefCnt
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
decoderResult, setDecoderResult
refCnt, release, release
public ByteBuf key()
BinaryMemcacheMessage
key
在接口中 BinaryMemcacheMessage
public ByteBuf extras()
BinaryMemcacheMessage
ByteBuf
representation of the optional extras.extras
在接口中 BinaryMemcacheMessage
public BinaryMemcacheMessage setKey(ByteBuf key)
BinaryMemcacheMessage
ReferenceCounted.release()
ownership of key
is transferred to this BinaryMemcacheMessage
.setKey
在接口中 BinaryMemcacheMessage
key
- the key of the message. ReferenceCounted.release()
ownership is transferred
to this BinaryMemcacheMessage
.public BinaryMemcacheMessage setExtras(ByteBuf extras)
BinaryMemcacheMessage
ReferenceCounted.release()
ownership of extras
is transferred to this BinaryMemcacheMessage
.setExtras
在接口中 BinaryMemcacheMessage
extras
- the extras buffer of the document. ReferenceCounted.release()
ownership is transferred
to this BinaryMemcacheMessage
.public byte magic()
BinaryMemcacheMessage
magic
在接口中 BinaryMemcacheMessage
public BinaryMemcacheMessage setMagic(byte magic)
BinaryMemcacheMessage
setMagic
在接口中 BinaryMemcacheMessage
magic
- the magic byte to use.for typesafe opcodes.
public long cas()
BinaryMemcacheMessage
cas
在接口中 BinaryMemcacheMessage
public BinaryMemcacheMessage setCas(long cas)
BinaryMemcacheMessage
setCas
在接口中 BinaryMemcacheMessage
cas
- the CAS identifier to use.public int opaque()
BinaryMemcacheMessage
opaque
在接口中 BinaryMemcacheMessage
public BinaryMemcacheMessage setOpaque(int opaque)
BinaryMemcacheMessage
setOpaque
在接口中 BinaryMemcacheMessage
opaque
- the opaque value to use.public int totalBodyLength()
BinaryMemcacheMessage
totalBodyLength
在接口中 BinaryMemcacheMessage
public BinaryMemcacheMessage setTotalBodyLength(int totalBodyLength)
BinaryMemcacheMessage
setTotalBodyLength
在接口中 BinaryMemcacheMessage
totalBodyLength
- the total body length.public byte dataType()
BinaryMemcacheMessage
dataType
在接口中 BinaryMemcacheMessage
public BinaryMemcacheMessage setDataType(byte dataType)
BinaryMemcacheMessage
setDataType
在接口中 BinaryMemcacheMessage
dataType
- the data type of the message.public byte extrasLength()
BinaryMemcacheMessage
extrasLength
在接口中 BinaryMemcacheMessage
public short keyLength()
BinaryMemcacheMessage
keyLength
在接口中 BinaryMemcacheMessage
public byte opcode()
BinaryMemcacheMessage
opcode
在接口中 BinaryMemcacheMessage
public BinaryMemcacheMessage setOpcode(byte opcode)
BinaryMemcacheMessage
setOpcode
在接口中 BinaryMemcacheMessage
opcode
- the opcode to use.public BinaryMemcacheMessage retain()
ReferenceCounted
1
.retain
在接口中 BinaryMemcacheMessage
retain
在接口中 MemcacheMessage
retain
在接口中 ReferenceCounted
retain
在类中 AbstractReferenceCounted
public BinaryMemcacheMessage retain(int increment)
ReferenceCounted
increment
.retain
在接口中 BinaryMemcacheMessage
retain
在接口中 MemcacheMessage
retain
在接口中 ReferenceCounted
retain
在类中 AbstractReferenceCounted
protected void deallocate()
AbstractReferenceCounted
AbstractReferenceCounted.refCnt()
is equals 0.deallocate
在类中 AbstractReferenceCounted
public BinaryMemcacheMessage touch()
ReferenceCounted
ResourceLeakDetector
. This method is a shortcut to touch(null)
.touch
在接口中 BinaryMemcacheMessage
touch
在接口中 MemcacheMessage
touch
在接口中 ReferenceCounted
touch
在类中 AbstractReferenceCounted
public BinaryMemcacheMessage touch(java.lang.Object hint)
ReferenceCounted
ResourceLeakDetector
.touch
在接口中 BinaryMemcacheMessage
touch
在接口中 MemcacheMessage
touch
在接口中 ReferenceCounted