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 theBinaryMemcacheRequest
.
-
-
Field Summary
Fields Modifier and Type Field Description static byte
REQUEST_MAGIC_BYTE
Default magic byte for a request.
-
Constructor Summary
Constructors Constructor Description DefaultBinaryMemcacheRequest()
Create a newDefaultBinaryMemcacheRequest
with the header only.DefaultBinaryMemcacheRequest(ByteBuf key)
Create a newDefaultBinaryMemcacheRequest
with the header and key.DefaultBinaryMemcacheRequest(ByteBuf key, ByteBuf extras)
Create a newDefaultBinaryMemcacheRequest
with the header only.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description short
reserved()
Returns the reserved field value.BinaryMemcacheRequest
retain()
Increases the reference count by1
.BinaryMemcacheRequest
retain(int increment)
Increases the reference count by the specifiedincrement
.BinaryMemcacheRequest
setReserved(short reserved)
Sets the reserved field value.BinaryMemcacheRequest
touch()
Records the current access location of this object for debugging purposes.BinaryMemcacheRequest
touch(java.lang.Object hint)
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, dataType, deallocate, extras, extrasLength, key, keyLength, magic, opaque, opcode, setCas, setDataType, setExtras, setKey, 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 Detail
-
REQUEST_MAGIC_BYTE
public static final byte REQUEST_MAGIC_BYTE
Default magic byte for a request.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DefaultBinaryMemcacheRequest
public DefaultBinaryMemcacheRequest()
Create a newDefaultBinaryMemcacheRequest
with the header only.
-
DefaultBinaryMemcacheRequest
public DefaultBinaryMemcacheRequest(ByteBuf key)
Create a newDefaultBinaryMemcacheRequest
with the header and key.- Parameters:
key
- the key to use.
-
DefaultBinaryMemcacheRequest
public DefaultBinaryMemcacheRequest(ByteBuf key, ByteBuf extras)
Create a newDefaultBinaryMemcacheRequest
with the header only.- Parameters:
key
- the key to use.extras
- the extras to use.
-
-
Method Detail
-
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
public BinaryMemcacheRequest setReserved(short reserved)
Description copied from interface:BinaryMemcacheRequest
Sets the reserved field value.- Specified by:
setReserved
in interfaceBinaryMemcacheRequest
- Parameters:
reserved
- the reserved field value.
-
retain
public BinaryMemcacheRequest 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
public BinaryMemcacheRequest retain(int increment)
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
public BinaryMemcacheRequest 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
public BinaryMemcacheRequest touch(java.lang.Object hint)
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
-
-