@UnstableApi 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.
|
io.netty.buffer.ByteBuf |
extras()
Returns a
ByteBuf representation of the optional extras. |
byte |
extrasLength()
Return the extras length of the message.
|
io.netty.buffer.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(io.netty.buffer.ByteBuf extras)
Sets the extras buffer on the message.
|
BinaryMemcacheMessage |
setKey(io.netty.buffer.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 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() |
BinaryMemcacheMessage |
touch(Object hint) |
byte 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()
byte extrasLength()
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 opaque value to use.long cas()
BinaryMemcacheMessage setCas(long cas)
cas - the CAS identifier to use.io.netty.buffer.ByteBuf key()
BinaryMemcacheMessage setKey(io.netty.buffer.ByteBuf key)
ReferenceCounted.release() ownership of key
is transferred to this BinaryMemcacheMessage.key - the key of the message. ReferenceCounted.release() ownership is transferred
to this BinaryMemcacheMessage.io.netty.buffer.ByteBuf extras()
ByteBuf representation of the optional extras.BinaryMemcacheMessage setExtras(io.netty.buffer.ByteBuf extras)
ReferenceCounted.release() ownership of extras
is transferred to this BinaryMemcacheMessage.extras - the extras buffer of the document. ReferenceCounted.release() ownership is transferred
to this BinaryMemcacheMessage.BinaryMemcacheMessage retain()
1.retain in interface MemcacheMessageretain in interface io.netty.util.ReferenceCountedBinaryMemcacheMessage retain(int increment)
increment.retain in interface MemcacheMessageretain in interface io.netty.util.ReferenceCountedBinaryMemcacheMessage touch()
touch in interface MemcacheMessagetouch in interface io.netty.util.ReferenceCountedBinaryMemcacheMessage touch(Object hint)
touch in interface MemcacheMessagetouch in interface io.netty.util.ReferenceCountedCopyright © 2008–2017 The Netty Project. All rights reserved.