public class DefaultBinaryMemcacheRequest extends AbstractBinaryMemcacheMessage implements BinaryMemcacheRequest
The default implementation of the BinaryMemcacheRequest
.
Modifier and Type | Field and Description |
---|---|
static byte |
REQUEST_MAGIC_BYTE
Default magic byte for a request.
|
Constructor and Description |
---|
DefaultBinaryMemcacheRequest()
Create a new
DefaultBinaryMemcacheRequest with the header only. |
DefaultBinaryMemcacheRequest(byte[] key)
Create a new
DefaultBinaryMemcacheRequest with the header and key. |
DefaultBinaryMemcacheRequest(byte[] key,
ByteBuf extras)
Create a new
DefaultBinaryMemcacheRequest with the header only. |
DefaultBinaryMemcacheRequest(ByteBuf extras)
Create a new
DefaultBinaryMemcacheRequest with the header and extras. |
Modifier and Type | Method and Description |
---|---|
short |
getReserved()
Returns the reserved field value.
|
BinaryMemcacheRequest |
retain() |
BinaryMemcacheRequest |
retain(int increment) |
BinaryMemcacheRequest |
setReserved(short reserved)
Sets the reserved field value.
|
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
getDecoderResult, setDecoderResult
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCAS, getDataType, getExtras, getExtrasLength, getFramingExtras, getFramingExtrasLength, getKey, getKeyLength, getMagic, getOpaque, getOpcode, getTotalBodyLength, setCAS, setDataType, setExtras, setExtrasLength, setFramingExtras, setFramingExtrasLength, setKey, setKeyLength, setMagic, setOpaque, setOpcode, setTotalBodyLength
getDecoderResult, setDecoderResult
refCnt, release, release
public static final byte REQUEST_MAGIC_BYTE
Default magic byte for a request.
public DefaultBinaryMemcacheRequest()
Create a new DefaultBinaryMemcacheRequest
with the header only.
public DefaultBinaryMemcacheRequest(byte[] key)
Create a new DefaultBinaryMemcacheRequest
with the header and key.
key
- the key to use.public DefaultBinaryMemcacheRequest(ByteBuf extras)
Create a new DefaultBinaryMemcacheRequest
with the header and extras.
extras
- the extras to use.public DefaultBinaryMemcacheRequest(byte[] key, ByteBuf extras)
Create a new DefaultBinaryMemcacheRequest
with the header only.
key
- the key to use.extras
- the extras to use.public short getReserved()
BinaryMemcacheRequest
Returns the reserved field value.
getReserved
in interface BinaryMemcacheRequest
public BinaryMemcacheRequest setReserved(short reserved)
BinaryMemcacheRequest
Sets the reserved field value.
setReserved
in interface BinaryMemcacheRequest
reserved
- the reserved field value.public BinaryMemcacheRequest retain()
retain
in interface ReferenceCounted
retain
in class AbstractBinaryMemcacheMessage
public BinaryMemcacheRequest retain(int increment)
retain
in interface ReferenceCounted
retain
in class AbstractBinaryMemcacheMessage
Copyright © 2018 Couchbase, Inc.. All rights reserved.