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 byteREQUEST_MAGIC_BYTEDefault magic byte for a request.
-
Constructor Summary
Constructors Constructor Description DefaultBinaryMemcacheRequest()Create a newDefaultBinaryMemcacheRequestwith the header only.DefaultBinaryMemcacheRequest(ByteBuf key)Create a newDefaultBinaryMemcacheRequestwith the header and key.DefaultBinaryMemcacheRequest(ByteBuf key, 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()Records the current access location of this object for debugging purposes.BinaryMemcacheRequesttouch(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 newDefaultBinaryMemcacheRequestwith the header only.
-
DefaultBinaryMemcacheRequest
public DefaultBinaryMemcacheRequest(ByteBuf key)
Create a newDefaultBinaryMemcacheRequestwith the header and key.- Parameters:
key- the key to use.
-
DefaultBinaryMemcacheRequest
public DefaultBinaryMemcacheRequest(ByteBuf key, 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:ReferenceCountedIncreases the reference count by1.- Specified by:
retainin interfaceBinaryMemcacheMessage- Specified by:
retainin interfaceBinaryMemcacheRequest- Specified by:
retainin interfaceMemcacheMessage- Specified by:
retainin interfaceReferenceCounted- Overrides:
retainin classAbstractBinaryMemcacheMessage
-
retain
public BinaryMemcacheRequest retain(int increment)
Description copied from interface:ReferenceCountedIncreases the reference count by the specifiedincrement.- Specified by:
retainin interfaceBinaryMemcacheMessage- Specified by:
retainin interfaceBinaryMemcacheRequest- Specified by:
retainin interfaceMemcacheMessage- Specified by:
retainin interfaceReferenceCounted- Overrides:
retainin classAbstractBinaryMemcacheMessage
-
touch
public BinaryMemcacheRequest touch()
Description copied from interface:ReferenceCountedRecords 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:
touchin interfaceBinaryMemcacheMessage- Specified by:
touchin interfaceBinaryMemcacheRequest- Specified by:
touchin interfaceMemcacheMessage- Specified by:
touchin interfaceReferenceCounted- Overrides:
touchin classAbstractBinaryMemcacheMessage
-
touch
public BinaryMemcacheRequest touch(java.lang.Object hint)
Description copied from interface:ReferenceCountedRecords 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:
touchin interfaceBinaryMemcacheMessage- Specified by:
touchin interfaceBinaryMemcacheRequest- Specified by:
touchin interfaceMemcacheMessage- Specified by:
touchin interfaceReferenceCounted- Overrides:
touchin classAbstractBinaryMemcacheMessage
-
-