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(ByteBuf extras)
Create a new
DefaultBinaryMemcacheRequest with the header and extras. |
DefaultBinaryMemcacheRequest(String key)
Create a new
DefaultBinaryMemcacheRequest with the header and key. |
DefaultBinaryMemcacheRequest(String key,
ByteBuf extras)
Create a new
DefaultBinaryMemcacheRequest with the header only. |
| 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, getKey, getKeyLength, getMagic, getOpaque, getOpcode, getTotalBodyLength, refCnt, release, release, setCAS, setDataType, setExtras, setExtrasLength, setKey, setKeyLength, setMagic, setOpaque, setOpcode, setTotalBodyLengthgetDecoderResult, setDecoderResultclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCAS, getDataType, getExtras, getExtrasLength, getKey, getKeyLength, getMagic, getOpaque, getOpcode, getTotalBodyLength, setCAS, setDataType, setExtras, setExtrasLength, setKey, setKeyLength, setMagic, setOpaque, setOpcode, setTotalBodyLengthgetDecoderResult, setDecoderResultrefCnt, release, releasepublic static final byte REQUEST_MAGIC_BYTE
Default magic byte for a request.
public DefaultBinaryMemcacheRequest()
Create a new DefaultBinaryMemcacheRequest with the header only.
public DefaultBinaryMemcacheRequest(String 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(String key, ByteBuf extras)
Create a new DefaultBinaryMemcacheRequest with the header only.
key - the key to use.extras - the extras to use.public short getReserved()
BinaryMemcacheRequestReturns the reserved field value.
getReserved in interface BinaryMemcacheRequestpublic BinaryMemcacheRequest setReserved(short reserved)
BinaryMemcacheRequestSets the reserved field value.
setReserved in interface BinaryMemcacheRequestreserved - the reserved field value.public BinaryMemcacheRequest retain()
retain in interface ReferenceCountedretain in class AbstractBinaryMemcacheMessagepublic BinaryMemcacheRequest retain(int increment)
retain in interface ReferenceCountedretain in class AbstractBinaryMemcacheMessageCopyright © 2016 Couchbase, Inc.. All rights reserved.