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 byteDefault magic byte for a request. -
Constructor Summary
ConstructorsConstructorDescriptionCreate a newDefaultBinaryMemcacheRequestwith the header only.Create a newDefaultBinaryMemcacheRequestwith the header and key.DefaultBinaryMemcacheRequest(ByteBuf key, ByteBuf extras) Create a newDefaultBinaryMemcacheRequestwith the header only. -
Method Summary
Modifier and TypeMethodDescriptionshortreserved()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 AbstractBinaryMemcacheMessage
cas, dataType, deallocate, extras, extrasLength, key, keyLength, magic, opaque, opcode, setCas, setDataType, setExtras, setKey, setMagic, setOpaque, setOpcode, setTotalBodyLength, totalBodyLengthMethods inherited from class AbstractMemcacheObject
decoderResult, setDecoderResultMethods inherited from class AbstractReferenceCounted
refCnt, release, release, setRefCntMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BinaryMemcacheMessage
cas, dataType, extras, extrasLength, key, keyLength, magic, opaque, opcode, setCas, setDataType, setExtras, setKey, setMagic, setOpaque, setOpcode, setTotalBodyLength, totalBodyLengthMethods inherited from interface DecoderResultProvider
decoderResult, setDecoderResultMethods inherited from interface ReferenceCounted
refCnt, release, release
-
Field Details
-
REQUEST_MAGIC_BYTE
public static final byte REQUEST_MAGIC_BYTEDefault magic byte for a request.- See Also:
-
-
Constructor Details
-
DefaultBinaryMemcacheRequest
public DefaultBinaryMemcacheRequest()Create a newDefaultBinaryMemcacheRequestwith the header only. -
DefaultBinaryMemcacheRequest
Create a newDefaultBinaryMemcacheRequestwith the header and key.- Parameters:
key- the key to use.
-
DefaultBinaryMemcacheRequest
Create a newDefaultBinaryMemcacheRequestwith the header only.- Parameters:
key- the key to use.extras- the extras to use.
-
-
Method Details
-
reserved
public short reserved()Description copied from interface:BinaryMemcacheRequestReturns the reserved field value.- Specified by:
reservedin interfaceBinaryMemcacheRequest- Returns:
- the reserved field value.
-
setReserved
Description copied from interface:BinaryMemcacheRequestSets the reserved field value.- Specified by:
setReservedin interfaceBinaryMemcacheRequest- Parameters:
reserved- the reserved field value.
-
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
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
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
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
-