Class DefaultBinaryMemcacheRequest
java.lang.Object
io.netty.util.AbstractReferenceCounted
io.netty.handler.codec.memcache.AbstractMemcacheObject
io.netty.handler.codec.memcache.binary.AbstractBinaryMemcacheMessage
io.netty.handler.codec.memcache.binary.DefaultBinaryMemcacheRequest
- All Implemented Interfaces:
DecoderResultProvider
,BinaryMemcacheMessage
,BinaryMemcacheRequest
,MemcacheMessage
,MemcacheObject
,ReferenceCounted
- Direct Known Subclasses:
DefaultFullBinaryMemcacheRequest
@UnstableApi
public class DefaultBinaryMemcacheRequest
extends AbstractBinaryMemcacheMessage
implements BinaryMemcacheRequest
The default implementation of the
BinaryMemcacheRequest
.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final byte
Default magic byte for a request.private short
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a newDefaultBinaryMemcacheRequest
with the header only.Create a newDefaultBinaryMemcacheRequest
with the header and key.DefaultBinaryMemcacheRequest
(ByteBuf key, ByteBuf extras) Create a newDefaultBinaryMemcacheRequest
with the header only. -
Method Summary
Modifier and TypeMethodDescription(package private) void
Copies special metadata hold by this instance to the provided instanceshort
reserved()
Returns the reserved field value.retain()
Increases the reference count by1
.retain
(int increment) Increases the reference count by the specifiedincrement
.setReserved
(short reserved) Sets the reserved field value.touch()
Records the current access location of this object for debugging purposes.Records the current access location of this object with an additional arbitrary information for debugging purposes.Methods inherited from class io.netty.handler.codec.memcache.binary.AbstractBinaryMemcacheMessage
cas, copyMeta, dataType, deallocate, extras, extrasLength, key, keyLength, magic, opaque, opcode, setCas, setDataType, setExtras, setExtrasLength, setKey, setKeyLength, setMagic, setOpaque, setOpcode, setTotalBodyLength, totalBodyLength
Methods inherited from class io.netty.handler.codec.memcache.AbstractMemcacheObject
decoderResult, setDecoderResult
Methods inherited from class io.netty.util.AbstractReferenceCounted
refCnt, release, release, setRefCnt
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.netty.handler.codec.memcache.binary.BinaryMemcacheMessage
cas, dataType, extras, extrasLength, key, keyLength, magic, opaque, opcode, setCas, setDataType, setExtras, setKey, setMagic, setOpaque, setOpcode, setTotalBodyLength, totalBodyLength
Methods inherited from interface io.netty.handler.codec.DecoderResultProvider
decoderResult, setDecoderResult
Methods inherited from interface io.netty.util.ReferenceCounted
refCnt, release, release
-
Field Details
-
REQUEST_MAGIC_BYTE
public static final byte REQUEST_MAGIC_BYTEDefault magic byte for a request.- See Also:
-
reserved
private short reserved
-
-
Constructor Details
-
DefaultBinaryMemcacheRequest
public DefaultBinaryMemcacheRequest()Create a newDefaultBinaryMemcacheRequest
with the header only. -
DefaultBinaryMemcacheRequest
Create a newDefaultBinaryMemcacheRequest
with the header and key.- Parameters:
key
- the key to use.
-
DefaultBinaryMemcacheRequest
Create a newDefaultBinaryMemcacheRequest
with the header only.- Parameters:
key
- the key to use.extras
- the extras to use.
-
-
Method Details
-
reserved
public short reserved()Description copied from interface:BinaryMemcacheRequest
Returns the reserved field value.- Specified by:
reserved
in interfaceBinaryMemcacheRequest
- Returns:
- the reserved field value.
-
setReserved
Description copied from interface:BinaryMemcacheRequest
Sets the reserved field value.- Specified by:
setReserved
in interfaceBinaryMemcacheRequest
- Parameters:
reserved
- the reserved field value.
-
retain
Description copied from interface:ReferenceCounted
Increases the reference count by1
.- Specified by:
retain
in interfaceBinaryMemcacheMessage
- Specified by:
retain
in interfaceBinaryMemcacheRequest
- Specified by:
retain
in interfaceMemcacheMessage
- Specified by:
retain
in interfaceReferenceCounted
- Overrides:
retain
in classAbstractBinaryMemcacheMessage
-
retain
Description copied from interface:ReferenceCounted
Increases the reference count by the specifiedincrement
.- Specified by:
retain
in interfaceBinaryMemcacheMessage
- Specified by:
retain
in interfaceBinaryMemcacheRequest
- Specified by:
retain
in interfaceMemcacheMessage
- Specified by:
retain
in interfaceReferenceCounted
- Overrides:
retain
in classAbstractBinaryMemcacheMessage
-
touch
Description copied from interface:ReferenceCounted
Records the current access location of this object for debugging purposes. If this object is determined to be leaked, the information recorded by this operation will be provided to you viaResourceLeakDetector
. This method is a shortcut totouch(null)
.- Specified by:
touch
in interfaceBinaryMemcacheMessage
- Specified by:
touch
in interfaceBinaryMemcacheRequest
- Specified by:
touch
in interfaceMemcacheMessage
- Specified by:
touch
in interfaceReferenceCounted
- Overrides:
touch
in classAbstractBinaryMemcacheMessage
-
touch
Description copied from interface:ReferenceCounted
Records the current access location of this object with an additional arbitrary information for debugging purposes. If this object is determined to be leaked, the information recorded by this operation will be provided to you viaResourceLeakDetector
.- Specified by:
touch
in interfaceBinaryMemcacheMessage
- Specified by:
touch
in interfaceBinaryMemcacheRequest
- Specified by:
touch
in interfaceMemcacheMessage
- Specified by:
touch
in interfaceReferenceCounted
- Overrides:
touch
in classAbstractBinaryMemcacheMessage
-
copyMeta
Copies special metadata hold by this instance to the provided instance- Parameters:
dst
- The instance where to copy the metadata of this instance to
-