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:
io.netty.handler.codec.DecoderResultProvider,BinaryMemcacheMessage,BinaryMemcacheRequest,MemcacheMessage,MemcacheObject,io.netty.util.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 byteREQUEST_MAGIC_BYTEDefault magic byte for a request.
-
Constructor Summary
Constructors Constructor Description DefaultBinaryMemcacheRequest()Create a newDefaultBinaryMemcacheRequestwith the header only.DefaultBinaryMemcacheRequest(io.netty.buffer.ByteBuf key)Create a newDefaultBinaryMemcacheRequestwith the header and key.DefaultBinaryMemcacheRequest(io.netty.buffer.ByteBuf key, io.netty.buffer.ByteBuf extras)Create a newDefaultBinaryMemcacheRequestwith the header only.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description shortreserved()Returns the reserved field value.BinaryMemcacheRequestretain()Increases the reference count by1.BinaryMemcacheRequestretain(int increment)Increases the reference count by the specifiedincrement.BinaryMemcacheRequestsetReserved(short reserved)Sets the reserved field value.BinaryMemcacheRequesttouch()BinaryMemcacheRequesttouch(Object hint)-
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
-
-
-
-
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 newDefaultBinaryMemcacheRequestwith the header only.
-
DefaultBinaryMemcacheRequest
public DefaultBinaryMemcacheRequest(io.netty.buffer.ByteBuf key)
Create a newDefaultBinaryMemcacheRequestwith the header and key.- Parameters:
key- the key to use.
-
DefaultBinaryMemcacheRequest
public DefaultBinaryMemcacheRequest(io.netty.buffer.ByteBuf key, io.netty.buffer.ByteBuf extras)Create a newDefaultBinaryMemcacheRequestwith the header only.- Parameters:
key- the key to use.extras- the extras to use.
-
-
Method Detail
-
reserved
public short reserved()
Description copied from interface:BinaryMemcacheRequestReturns the reserved field value.- Specified by:
reservedin interfaceBinaryMemcacheRequest- Returns:
- the reserved field value.
-
setReserved
public BinaryMemcacheRequest setReserved(short reserved)
Description copied from interface:BinaryMemcacheRequestSets the reserved field value.- Specified by:
setReservedin interfaceBinaryMemcacheRequest- Parameters:
reserved- the reserved field value.
-
retain
public BinaryMemcacheRequest retain()
Description copied from interface:BinaryMemcacheMessageIncreases the reference count by1.- Specified by:
retainin interfaceBinaryMemcacheMessage- Specified by:
retainin interfaceBinaryMemcacheRequest- Specified by:
retainin interfaceMemcacheMessage- Specified by:
retainin interfaceio.netty.util.ReferenceCounted- Overrides:
retainin classAbstractBinaryMemcacheMessage
-
retain
public BinaryMemcacheRequest retain(int increment)
Description copied from interface:BinaryMemcacheMessageIncreases the reference count by the specifiedincrement.- Specified by:
retainin interfaceBinaryMemcacheMessage- Specified by:
retainin interfaceBinaryMemcacheRequest- Specified by:
retainin interfaceMemcacheMessage- Specified by:
retainin interfaceio.netty.util.ReferenceCounted- Overrides:
retainin classAbstractBinaryMemcacheMessage
-
touch
public BinaryMemcacheRequest touch()
- Specified by:
touchin interfaceBinaryMemcacheMessage- Specified by:
touchin interfaceBinaryMemcacheRequest- Specified by:
touchin interfaceMemcacheMessage- Specified by:
touchin interfaceio.netty.util.ReferenceCounted- Overrides:
touchin classAbstractBinaryMemcacheMessage
-
touch
public BinaryMemcacheRequest touch(Object hint)
- Specified by:
touchin interfaceBinaryMemcacheMessage- Specified by:
touchin interfaceBinaryMemcacheRequest- Specified by:
touchin interfaceMemcacheMessage- Specified by:
touchin interfaceio.netty.util.ReferenceCounted- Overrides:
touchin classAbstractBinaryMemcacheMessage
-
-