public abstract class AbstractBinaryMemcacheMessageHeader extends Object implements BinaryMemcacheMessageHeader
BinaryMemcacheMessageHeader.| Constructor and Description |
|---|
AbstractBinaryMemcacheMessageHeader() |
| 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 opcode)
Sets the opcode for the message.
|
BinaryMemcacheMessageHeader |
setTotalBodyLength(int totalBodyLength)
Sets the total body length.
|
public byte getMagic()
BinaryMemcacheMessageHeadergetMagic in interface BinaryMemcacheMessageHeaderpublic BinaryMemcacheMessageHeader setMagic(byte magic)
BinaryMemcacheMessageHeadersetMagic in interface BinaryMemcacheMessageHeadermagic - the magic byte to use.for typesafe opcodes.public long getCAS()
BinaryMemcacheMessageHeadergetCAS in interface BinaryMemcacheMessageHeaderpublic BinaryMemcacheMessageHeader setCAS(long cas)
BinaryMemcacheMessageHeadersetCAS in interface BinaryMemcacheMessageHeadercas - the CAS identifier to use.public int getOpaque()
BinaryMemcacheMessageHeadergetOpaque in interface BinaryMemcacheMessageHeaderpublic BinaryMemcacheMessageHeader setOpaque(int opaque)
BinaryMemcacheMessageHeadersetOpaque in interface BinaryMemcacheMessageHeaderopaque - the opqaue value to use.public int getTotalBodyLength()
BinaryMemcacheMessageHeadergetTotalBodyLength in interface BinaryMemcacheMessageHeaderpublic BinaryMemcacheMessageHeader setTotalBodyLength(int totalBodyLength)
BinaryMemcacheMessageHeadersetTotalBodyLength in interface BinaryMemcacheMessageHeadertotalBodyLength - the total body length.public byte getDataType()
BinaryMemcacheMessageHeadergetDataType in interface BinaryMemcacheMessageHeaderpublic BinaryMemcacheMessageHeader setDataType(byte dataType)
BinaryMemcacheMessageHeadersetDataType in interface BinaryMemcacheMessageHeaderdataType - the data type of the message.public byte getExtrasLength()
BinaryMemcacheMessageHeadergetExtrasLength in interface BinaryMemcacheMessageHeaderpublic BinaryMemcacheMessageHeader setExtrasLength(byte extrasLength)
BinaryMemcacheMessageHeadersetExtrasLength in interface BinaryMemcacheMessageHeaderextrasLength - the extras length.public short getKeyLength()
BinaryMemcacheMessageHeadergetKeyLength in interface BinaryMemcacheMessageHeaderpublic BinaryMemcacheMessageHeader setKeyLength(short keyLength)
BinaryMemcacheMessageHeadersetKeyLength in interface BinaryMemcacheMessageHeaderkeyLength - the key length to use.public byte getOpcode()
BinaryMemcacheMessageHeadergetOpcode in interface BinaryMemcacheMessageHeaderpublic BinaryMemcacheMessageHeader setOpcode(byte opcode)
BinaryMemcacheMessageHeadersetOpcode in interface BinaryMemcacheMessageHeaderopcode - the opcode to use.Copyright © 2008–2013 The Netty Project. All rights reserved.