public interface BinaryMemcacheMessageHeader
BinaryMemcacheMessage.
Since the header is different for a BinaryMemcacheRequest and BinaryMemcacheResponse, see
BinaryMemcacheRequestHeader and BinaryMemcacheResponseHeader.
The BinaryMemcacheMessageHeader is always 24 bytes in length and needs to be filled up if values are
not set.
Fore more information, see the official protocol specification here.
| Modifier and Type | Method and Description |
|---|---|
long |
getCAS()
Returns the CAS identifier.
|
byte |
getDataType()
Returns the data type of the message.
|
byte |
getExtrasLength()
Return the extras length of the message.
|
short |
getKeyLength()
Returns the key length of the message.
|
byte |
getMagic()
Returns the magic byte for the message.
|
int |
getOpaque()
Returns the opaque value.
|
byte |
getOpcode()
Returns the opcode for the message.
|
int |
getTotalBodyLength()
Returns the total body length.
|
BinaryMemcacheMessageHeader |
setCAS(long cas)
Sets the CAS identifier.
|
BinaryMemcacheMessageHeader |
setDataType(byte dataType)
Sets the data type of the message.
|
BinaryMemcacheMessageHeader |
setExtrasLength(byte extrasLength)
Set the extras length of the message.
|
BinaryMemcacheMessageHeader |
setKeyLength(short keyLength)
Set the key length of the message.
|
BinaryMemcacheMessageHeader |
setMagic(byte magic)
Sets the magic byte.
|
BinaryMemcacheMessageHeader |
setOpaque(int opaque)
Sets the opaque value.
|
BinaryMemcacheMessageHeader |
setOpcode(byte code)
Sets the opcode for the message.
|
BinaryMemcacheMessageHeader |
setTotalBodyLength(int totalBodyLength)
Sets the total body length.
|
byte getMagic()
BinaryMemcacheMessageHeader setMagic(byte magic)
magic - the magic byte to use.for typesafe opcodes.byte getOpcode()
BinaryMemcacheMessageHeader setOpcode(byte code)
code - the opcode to use.short getKeyLength()
BinaryMemcacheMessageHeader setKeyLength(short keyLength)
keyLength - the key length to use.byte getExtrasLength()
BinaryMemcacheMessageHeader setExtrasLength(byte extrasLength)
extrasLength - the extras length.byte getDataType()
BinaryMemcacheMessageHeader setDataType(byte dataType)
dataType - the data type of the message.int getTotalBodyLength()
BinaryMemcacheMessageHeader setTotalBodyLength(int totalBodyLength)
totalBodyLength - the total body length.int getOpaque()
BinaryMemcacheMessageHeader setOpaque(int opaque)
opaque - the opqaue value to use.long getCAS()
BinaryMemcacheMessageHeader setCAS(long cas)
cas - the CAS identifier to use.Copyright © 2008–2013 The Netty Project. All rights reserved.