public interface BinaryMemcacheMessage extends MemcacheMessage
BinaryMemcacheRequest and BinaryMemcacheResponse.
A BinaryMemcacheMessage always consists of a header and optional extras or/and
a key.BinaryMemcacheRequest,
BinaryMemcacheResponse| 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.
|
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 code)
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, setDecoderResultrefCnt, release, releasebyte magic()
BinaryMemcacheMessage setMagic(byte magic)
magic - the magic byte to use.for typesafe opcodes.byte opcode()
BinaryMemcacheMessage setOpcode(byte code)
code - the opcode to use.short keyLength()
BinaryMemcacheMessage setKeyLength(short keyLength)
keyLength - the key length to use.byte extrasLength()
BinaryMemcacheMessage setExtrasLength(byte extrasLength)
extrasLength - the extras length.byte dataType()
BinaryMemcacheMessage setDataType(byte dataType)
dataType - the data type of the message.int totalBodyLength()
BinaryMemcacheMessage setTotalBodyLength(int totalBodyLength)
totalBodyLength - the total body length.int opaque()
BinaryMemcacheMessage setOpaque(int opaque)
opaque - the opqaue value to use.long cas()
BinaryMemcacheMessage setCas(long cas)
cas - the CAS identifier to use.String key()
BinaryMemcacheMessage setKey(String key)
key - the key of the message.ByteBuf extras()
ByteBuf representation of the optional extras.BinaryMemcacheMessage setExtras(ByteBuf extras)
extras - the extras buffer of the document.BinaryMemcacheMessage retain()
1.retain in interface MemcacheMessageretain in interface ReferenceCountedBinaryMemcacheMessage retain(int increment)
increment.retain in interface MemcacheMessageretain in interface ReferenceCountedBinaryMemcacheMessage touch()
ReferenceCountedResourceLeakDetector. This method is a shortcut to touch(null).touch in interface MemcacheMessagetouch in interface ReferenceCountedBinaryMemcacheMessage touch(Object hint)
ReferenceCountedResourceLeakDetector.touch in interface MemcacheMessagetouch in interface ReferenceCountedCopyright © 2008–2015 The Netty Project. All rights reserved.