@UnstableApi public abstract class AbstractBinaryMemcacheMessage extends AbstractMemcacheObject implements BinaryMemcacheMessage
BinaryMemcacheMessage.| Modifier | Constructor and Description | 
|---|---|
protected  | 
AbstractBinaryMemcacheMessage(ByteBuf 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. 
 | 
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(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 in interface BinaryMemcacheMessagepublic ByteBuf extras()
BinaryMemcacheMessageByteBuf representation of the optional extras.extras in interface BinaryMemcacheMessagepublic BinaryMemcacheMessage setKey(ByteBuf key)
BinaryMemcacheMessageReferenceCounted.release() ownership of key
 is transferred to this BinaryMemcacheMessage.setKey in interface 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 in interface BinaryMemcacheMessageextras - the extras buffer of the document. ReferenceCounted.release() ownership is transferred
               to this BinaryMemcacheMessage.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 opaque 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 short keyLength()
BinaryMemcacheMessagekeyLength in interface BinaryMemcacheMessagepublic byte opcode()
BinaryMemcacheMessageopcode in interface BinaryMemcacheMessagepublic BinaryMemcacheMessage setOpcode(byte opcode)
BinaryMemcacheMessagesetOpcode in interface BinaryMemcacheMessageopcode - the opcode to use.public BinaryMemcacheMessage retain()
ReferenceCounted1.retain in interface BinaryMemcacheMessageretain in interface MemcacheMessageretain in interface ReferenceCountedretain in class AbstractReferenceCountedpublic BinaryMemcacheMessage retain(int increment)
ReferenceCountedincrement.retain in interface BinaryMemcacheMessageretain in interface MemcacheMessageretain in interface ReferenceCountedretain in class AbstractReferenceCountedprotected void deallocate()
AbstractReferenceCountedAbstractReferenceCounted.refCnt() is equals 0.deallocate in class AbstractReferenceCountedpublic BinaryMemcacheMessage touch()
ReferenceCountedResourceLeakDetector.  This method is a shortcut to touch(null).touch in interface BinaryMemcacheMessagetouch in interface MemcacheMessagetouch in interface ReferenceCountedtouch in class AbstractReferenceCountedpublic BinaryMemcacheMessage touch(Object hint)
ReferenceCountedResourceLeakDetector.touch in interface BinaryMemcacheMessagetouch in interface MemcacheMessagetouch in interface ReferenceCountedCopyright © 2008–2025 The Netty Project. All rights reserved.