Class DefaultBinaryMemcacheRequest
- java.lang.Object
-
- com.couchbase.client.deps.io.netty.handler.codec.memcache.AbstractMemcacheObject
-
- com.couchbase.client.deps.io.netty.handler.codec.memcache.binary.AbstractBinaryMemcacheMessage
-
- com.couchbase.client.deps.io.netty.handler.codec.memcache.binary.DefaultBinaryMemcacheRequest
-
- All Implemented Interfaces:
BinaryMemcacheMessage
,BinaryMemcacheRequest
,MemcacheMessage
,MemcacheObject
,ReferenceCounted
- Direct Known Subclasses:
DefaultFullBinaryMemcacheRequest
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(byte[] key)
Create a newDefaultBinaryMemcacheRequest
with the header and key.DefaultBinaryMemcacheRequest(byte[] key, ByteBuf extras)
Create a newDefaultBinaryMemcacheRequest
with the header only.DefaultBinaryMemcacheRequest(ByteBuf extras)
Create a newDefaultBinaryMemcacheRequest
with the header and extras.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description short
getReserved()
Returns the reserved field value.BinaryMemcacheRequest
retain()
BinaryMemcacheRequest
retain(int increment)
BinaryMemcacheRequest
setReserved(short reserved)
Sets the reserved field value.-
Methods inherited from class com.couchbase.client.deps.io.netty.handler.codec.memcache.binary.AbstractBinaryMemcacheMessage
getCAS, getDataType, getExtras, getExtrasLength, getFramingExtras, getFramingExtrasLength, getKey, getKeyLength, getMagic, getOpaque, getOpcode, getTotalBodyLength, refCnt, release, release, setCAS, setDataType, setExtras, setExtrasLength, setFramingExtras, setFramingExtrasLength, setKey, setKeyLength, setMagic, setOpaque, setOpcode, setTotalBodyLength, touch, touch
-
Methods inherited from class com.couchbase.client.deps.io.netty.handler.codec.memcache.AbstractMemcacheObject
getDecoderResult, setDecoderResult
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.couchbase.client.deps.io.netty.handler.codec.memcache.binary.BinaryMemcacheMessage
getCAS, getDataType, getExtras, getExtrasLength, getFramingExtras, getFramingExtrasLength, getKey, getKeyLength, getMagic, getOpaque, getOpcode, getTotalBodyLength, setCAS, setDataType, setExtras, setExtrasLength, setFramingExtras, setFramingExtrasLength, setKey, setKeyLength, setMagic, setOpaque, setOpcode, setTotalBodyLength
-
Methods inherited from interface com.couchbase.client.deps.io.netty.handler.codec.memcache.MemcacheObject
getDecoderResult, setDecoderResult
-
-
-
-
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(byte[] key)
Create a newDefaultBinaryMemcacheRequest
with the header and key.- Parameters:
key
- the key to use.
-
DefaultBinaryMemcacheRequest
public DefaultBinaryMemcacheRequest(ByteBuf extras)
Create a newDefaultBinaryMemcacheRequest
with the header and extras.- Parameters:
extras
- the extras to use.
-
DefaultBinaryMemcacheRequest
public DefaultBinaryMemcacheRequest(byte[] key, ByteBuf extras)
Create a newDefaultBinaryMemcacheRequest
with the header only.- Parameters:
key
- the key to use.extras
- the extras to use.
-
-
Method Detail
-
getReserved
public short getReserved()
Description copied from interface:BinaryMemcacheRequest
Returns the reserved field value.- Specified by:
getReserved
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()
- Specified by:
retain
in interfaceReferenceCounted
- Overrides:
retain
in classAbstractBinaryMemcacheMessage
-
retain
public BinaryMemcacheRequest retain(int increment)
- Specified by:
retain
in interfaceReferenceCounted
- Overrides:
retain
in classAbstractBinaryMemcacheMessage
-
-