public abstract class AbstractBinaryMemcacheMessage extends AbstractMemcacheObject implements BinaryMemcacheMessage
BinaryMemcacheMessage.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractBinaryMemcacheMessage(String key,
ByteBuf extras)
Create a new instance with all properties set.
|
| Modifier and Type | Method and Description |
|---|---|
long |
cas()
Returns the CAS identifier.
|
byte |
dataType()
Returns the data type of the message.
|
ByteBuf |
extras()
Returns a
ByteBuf representation of the optional extras. |
byte |
extrasLength()
Return the extras length of the message.
|
String |
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.
|
int |
refCnt()
Returns the reference count of this object.
|
boolean |
release()
Decreases the reference count by
1 and deallocates this object if the reference count reaches at
0. |
boolean |
release(int decrement)
Decreases the reference count by the specified
decrement and deallocates this object if the reference
count reaches at 0. |
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 |
setExtrasLength(byte extrasLength)
Set the extras length of the message.
|
BinaryMemcacheMessage |
setKey(String key)
Sets the key of the document.
|
BinaryMemcacheMessage |
setKeyLength(short keyLength)
Set the key length of the message.
|
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(Object hint)
Records the current access location of this object with an additonal arbitrary information for debugging
purposes.
|
decoderResult, setDecoderResultclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdecoderResult, setDecoderResultpublic String key()
BinaryMemcacheMessagekey in interface BinaryMemcacheMessagepublic ByteBuf extras()
BinaryMemcacheMessageByteBuf representation of the optional extras.extras in interface BinaryMemcacheMessagepublic BinaryMemcacheMessage setKey(String key)
BinaryMemcacheMessagesetKey in interface BinaryMemcacheMessagekey - the key of the message.public BinaryMemcacheMessage setExtras(ByteBuf extras)
BinaryMemcacheMessagesetExtras in interface BinaryMemcacheMessageextras - the extras buffer of the document.public byte magic()
BinaryMemcacheMessagemagic in interface BinaryMemcacheMessagepublic BinaryMemcacheMessage setMagic(byte magic)
BinaryMemcacheMessagesetMagic in interface BinaryMemcacheMessagemagic - the magic byte to use.for typesafe opcodes.public long cas()
BinaryMemcacheMessagecas in interface BinaryMemcacheMessagepublic BinaryMemcacheMessage setCas(long cas)
BinaryMemcacheMessagesetCas in interface BinaryMemcacheMessagecas - the CAS identifier to use.public int opaque()
BinaryMemcacheMessageopaque in interface BinaryMemcacheMessagepublic BinaryMemcacheMessage setOpaque(int opaque)
BinaryMemcacheMessagesetOpaque in interface BinaryMemcacheMessageopaque - the opqaue value to use.public int totalBodyLength()
BinaryMemcacheMessagetotalBodyLength in interface BinaryMemcacheMessagepublic BinaryMemcacheMessage setTotalBodyLength(int totalBodyLength)
BinaryMemcacheMessagesetTotalBodyLength in interface BinaryMemcacheMessagetotalBodyLength - the total body length.public byte dataType()
BinaryMemcacheMessagedataType in interface BinaryMemcacheMessagepublic BinaryMemcacheMessage setDataType(byte dataType)
BinaryMemcacheMessagesetDataType in interface BinaryMemcacheMessagedataType - the data type of the message.public byte extrasLength()
BinaryMemcacheMessageextrasLength in interface BinaryMemcacheMessagepublic BinaryMemcacheMessage setExtrasLength(byte extrasLength)
BinaryMemcacheMessagesetExtrasLength in interface BinaryMemcacheMessageextrasLength - the extras length.public short keyLength()
BinaryMemcacheMessagekeyLength in interface BinaryMemcacheMessagepublic BinaryMemcacheMessage setKeyLength(short keyLength)
BinaryMemcacheMessagesetKeyLength in interface BinaryMemcacheMessagekeyLength - the key length to use.public byte opcode()
BinaryMemcacheMessageopcode in interface BinaryMemcacheMessagepublic BinaryMemcacheMessage setOpcode(byte opcode)
BinaryMemcacheMessagesetOpcode in interface BinaryMemcacheMessageopcode - the opcode to use.public int refCnt()
ReferenceCounted0, it means this object has been deallocated.refCnt in interface ReferenceCountedpublic BinaryMemcacheMessage retain()
BinaryMemcacheMessage1.retain in interface BinaryMemcacheMessageretain in interface MemcacheMessageretain in interface ReferenceCountedpublic BinaryMemcacheMessage retain(int increment)
BinaryMemcacheMessageincrement.retain in interface BinaryMemcacheMessageretain in interface MemcacheMessageretain in interface ReferenceCountedpublic boolean release()
ReferenceCounted1 and deallocates this object if the reference count reaches at
0.release in interface ReferenceCountedtrue if and only if the reference count became 0 and this object has been deallocatedpublic boolean release(int decrement)
ReferenceCounteddecrement and deallocates this object if the reference
count reaches at 0.release in interface ReferenceCountedtrue if and only if the reference count became 0 and this object has been deallocatedpublic BinaryMemcacheMessage touch()
ReferenceCountedResourceLeakDetector. This method is a shortcut to touch(null).touch in interface BinaryMemcacheMessagetouch in interface MemcacheMessagetouch in interface ReferenceCountedpublic BinaryMemcacheMessage touch(Object hint)
ReferenceCountedResourceLeakDetector.touch in interface BinaryMemcacheMessagetouch in interface MemcacheMessagetouch in interface ReferenceCountedCopyright © 2008–2015 The Netty Project. All rights reserved.