@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.
|
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 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 additional arbitrary information for debugging
purposes.
|
decoderResult, setDecoderResult
refCnt, release, release
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.ByteBuf key()
BinaryMemcacheMessage setKey(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
.ByteBuf extras()
ByteBuf
representation of the optional extras.BinaryMemcacheMessage setExtras(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 MemcacheMessage
retain
in interface ReferenceCounted
BinaryMemcacheMessage retain(int increment)
increment
.retain
in interface MemcacheMessage
retain
in interface ReferenceCounted
BinaryMemcacheMessage touch()
ReferenceCounted
ResourceLeakDetector
. This method is a shortcut to touch(null)
.touch
in interface MemcacheMessage
touch
in interface ReferenceCounted
BinaryMemcacheMessage touch(Object hint)
ReferenceCounted
ResourceLeakDetector
.touch
in interface MemcacheMessage
touch
in interface ReferenceCounted
Copyright © 2008–2024 The Netty Project. All rights reserved.