@UnstableApi public class DefaultBinaryMemcacheRequest extends AbstractBinaryMemcacheMessage implements BinaryMemcacheRequest
BinaryMemcacheRequest
.Modifier and Type | Field and Description |
---|---|
static byte |
REQUEST_MAGIC_BYTE
Default magic byte for a request.
|
Constructor and Description |
---|
DefaultBinaryMemcacheRequest()
Create a new
DefaultBinaryMemcacheRequest with the header only. |
DefaultBinaryMemcacheRequest(ByteBuf key)
Create a new
DefaultBinaryMemcacheRequest with the header and key. |
DefaultBinaryMemcacheRequest(ByteBuf key,
ByteBuf extras)
Create a new
DefaultBinaryMemcacheRequest with the header only. |
Modifier and Type | Method and Description |
---|---|
short |
reserved()
Returns the reserved field value.
|
BinaryMemcacheRequest |
retain()
Increases the reference count by
1 . |
BinaryMemcacheRequest |
retain(int increment)
Increases the reference count by the specified
increment . |
BinaryMemcacheRequest |
setReserved(short reserved)
Sets the reserved field value.
|
BinaryMemcacheRequest |
touch()
Records the current access location of this object for debugging purposes.
|
BinaryMemcacheRequest |
touch(Object hint)
Records the current access location of this object with an additional arbitrary information for debugging
purposes.
|
cas, dataType, deallocate, extras, extrasLength, key, keyLength, magic, opaque, opcode, setCas, setDataType, setExtras, setKey, setMagic, setOpaque, setOpcode, setTotalBodyLength, totalBodyLength
decoderResult, setDecoderResult
refCnt, release, release, setRefCnt
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cas, dataType, extras, extrasLength, key, keyLength, magic, opaque, opcode, setCas, setDataType, setExtras, setKey, setMagic, setOpaque, setOpcode, setTotalBodyLength, totalBodyLength
decoderResult, setDecoderResult
refCnt, release, release
public static final byte REQUEST_MAGIC_BYTE
public DefaultBinaryMemcacheRequest()
DefaultBinaryMemcacheRequest
with the header only.public DefaultBinaryMemcacheRequest(ByteBuf key)
DefaultBinaryMemcacheRequest
with the header and key.key
- the key to use.public DefaultBinaryMemcacheRequest(ByteBuf key, ByteBuf extras)
DefaultBinaryMemcacheRequest
with the header only.key
- the key to use.extras
- the extras to use.public short reserved()
BinaryMemcacheRequest
reserved
in interface BinaryMemcacheRequest
public BinaryMemcacheRequest setReserved(short reserved)
BinaryMemcacheRequest
setReserved
in interface BinaryMemcacheRequest
reserved
- the reserved field value.public BinaryMemcacheRequest retain()
ReferenceCounted
1
.retain
in interface BinaryMemcacheMessage
retain
in interface BinaryMemcacheRequest
retain
in interface MemcacheMessage
retain
in interface ReferenceCounted
retain
in class AbstractBinaryMemcacheMessage
public BinaryMemcacheRequest retain(int increment)
ReferenceCounted
increment
.retain
in interface BinaryMemcacheMessage
retain
in interface BinaryMemcacheRequest
retain
in interface MemcacheMessage
retain
in interface ReferenceCounted
retain
in class AbstractBinaryMemcacheMessage
public BinaryMemcacheRequest touch()
ReferenceCounted
ResourceLeakDetector
. This method is a shortcut to touch(null)
.touch
in interface BinaryMemcacheMessage
touch
in interface BinaryMemcacheRequest
touch
in interface MemcacheMessage
touch
in interface ReferenceCounted
touch
in class AbstractBinaryMemcacheMessage
public BinaryMemcacheRequest touch(Object hint)
ReferenceCounted
ResourceLeakDetector
.touch
in interface BinaryMemcacheMessage
touch
in interface BinaryMemcacheRequest
touch
in interface MemcacheMessage
touch
in interface ReferenceCounted
touch
in class AbstractBinaryMemcacheMessage
Copyright © 2008–2017 The Netty Project. All rights reserved.