@UnstableApi public abstract class AbstractBinaryMemcacheMessage extends AbstractMemcacheObject implements BinaryMemcacheMessage
BinaryMemcacheMessage
.Modifier | Constructor and Description |
---|---|
protected |
AbstractBinaryMemcacheMessage(ByteBuf key,
ByteBuf extras)
Create a new instance with all properties set.
|
Modifier and Type | Method and Description |
---|---|
long |
cas()
Returns the CAS identifier.
|
byte |
dataType()
Returns the data type of the message.
|
protected void |
deallocate()
Called once
AbstractReferenceCounted.refCnt() is equals 0. |
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 opcode)
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, setRefCnt
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
decoderResult, setDecoderResult
refCnt, release, release
public ByteBuf key()
BinaryMemcacheMessage
key
in interface BinaryMemcacheMessage
public ByteBuf extras()
BinaryMemcacheMessage
ByteBuf
representation of the optional extras.extras
in interface BinaryMemcacheMessage
public BinaryMemcacheMessage setKey(ByteBuf key)
BinaryMemcacheMessage
ReferenceCounted.release()
ownership of key
is transferred to this BinaryMemcacheMessage
.setKey
in interface BinaryMemcacheMessage
key
- the key of the message. ReferenceCounted.release()
ownership is transferred
to this BinaryMemcacheMessage
.public BinaryMemcacheMessage setExtras(ByteBuf extras)
BinaryMemcacheMessage
ReferenceCounted.release()
ownership of extras
is transferred to this BinaryMemcacheMessage
.setExtras
in interface BinaryMemcacheMessage
extras
- the extras buffer of the document. ReferenceCounted.release()
ownership is transferred
to this BinaryMemcacheMessage
.public byte magic()
BinaryMemcacheMessage
magic
in interface BinaryMemcacheMessage
public BinaryMemcacheMessage setMagic(byte magic)
BinaryMemcacheMessage
setMagic
in interface BinaryMemcacheMessage
magic
- the magic byte to use.for typesafe opcodes.
public long cas()
BinaryMemcacheMessage
cas
in interface BinaryMemcacheMessage
public BinaryMemcacheMessage setCas(long cas)
BinaryMemcacheMessage
setCas
in interface BinaryMemcacheMessage
cas
- the CAS identifier to use.public int opaque()
BinaryMemcacheMessage
opaque
in interface BinaryMemcacheMessage
public BinaryMemcacheMessage setOpaque(int opaque)
BinaryMemcacheMessage
setOpaque
in interface BinaryMemcacheMessage
opaque
- the opaque value to use.public int totalBodyLength()
BinaryMemcacheMessage
totalBodyLength
in interface BinaryMemcacheMessage
public BinaryMemcacheMessage setTotalBodyLength(int totalBodyLength)
BinaryMemcacheMessage
setTotalBodyLength
in interface BinaryMemcacheMessage
totalBodyLength
- the total body length.public byte dataType()
BinaryMemcacheMessage
dataType
in interface BinaryMemcacheMessage
public BinaryMemcacheMessage setDataType(byte dataType)
BinaryMemcacheMessage
setDataType
in interface BinaryMemcacheMessage
dataType
- the data type of the message.public byte extrasLength()
BinaryMemcacheMessage
extrasLength
in interface BinaryMemcacheMessage
public short keyLength()
BinaryMemcacheMessage
keyLength
in interface BinaryMemcacheMessage
public byte opcode()
BinaryMemcacheMessage
opcode
in interface BinaryMemcacheMessage
public BinaryMemcacheMessage setOpcode(byte opcode)
BinaryMemcacheMessage
setOpcode
in interface BinaryMemcacheMessage
opcode
- the opcode to use.public BinaryMemcacheMessage retain()
ReferenceCounted
1
.retain
in interface BinaryMemcacheMessage
retain
in interface MemcacheMessage
retain
in interface ReferenceCounted
retain
in class AbstractReferenceCounted
public BinaryMemcacheMessage retain(int increment)
ReferenceCounted
increment
.retain
in interface BinaryMemcacheMessage
retain
in interface MemcacheMessage
retain
in interface ReferenceCounted
retain
in class AbstractReferenceCounted
protected void deallocate()
AbstractReferenceCounted
AbstractReferenceCounted.refCnt()
is equals 0.deallocate
in class AbstractReferenceCounted
public BinaryMemcacheMessage touch()
ReferenceCounted
ResourceLeakDetector
. This method is a shortcut to touch(null)
.touch
in interface BinaryMemcacheMessage
touch
in interface MemcacheMessage
touch
in interface ReferenceCounted
touch
in class AbstractReferenceCounted
public BinaryMemcacheMessage touch(Object hint)
ReferenceCounted
ResourceLeakDetector
.touch
in interface BinaryMemcacheMessage
touch
in interface MemcacheMessage
touch
in interface ReferenceCounted
Copyright © 2008–2024 The Netty Project. All rights reserved.