public class DefaultFullBinaryMemcacheRequest extends DefaultBinaryMemcacheRequest implements FullBinaryMemcacheRequest
The default implementation of a FullBinaryMemcacheRequest.
REQUEST_MAGIC_BYTEEMPTY_LAST_CONTENT| Constructor and Description |
|---|
DefaultFullBinaryMemcacheRequest(String key,
ByteBuf extras)
Create a new
DefaultBinaryMemcacheRequest with the header, key and extras. |
DefaultFullBinaryMemcacheRequest(String key,
ByteBuf extras,
ByteBuf content)
Create a new
DefaultBinaryMemcacheRequest with the header, key, extras and content. |
| Modifier and Type | Method and Description |
|---|---|
ByteBuf |
content() |
FullBinaryMemcacheRequest |
copy() |
FullBinaryMemcacheRequest |
duplicate() |
int |
refCnt() |
boolean |
release() |
boolean |
release(int decrement) |
FullBinaryMemcacheRequest |
retain() |
FullBinaryMemcacheRequest |
retain(int increment) |
getReserved, setReservedgetCAS, getDataType, getExtras, getExtrasLength, getKey, getKeyLength, getMagic, getOpaque, getOpcode, getTotalBodyLength, setCAS, setDataType, setExtras, setExtrasLength, setKey, setKeyLength, setMagic, setOpaque, setOpcode, setTotalBodyLengthgetDecoderResult, setDecoderResultclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetReserved, setReservedgetCAS, getDataType, getExtras, getExtrasLength, getKey, getKeyLength, getMagic, getOpaque, getOpcode, getTotalBodyLength, setCAS, setDataType, setExtras, setExtrasLength, setKey, setKeyLength, setMagic, setOpaque, setOpcode, setTotalBodyLengthpublic DefaultFullBinaryMemcacheRequest(String key, ByteBuf extras)
Create a new DefaultBinaryMemcacheRequest with the header, key and extras.
key - the key to use.extras - the extras to use.public DefaultFullBinaryMemcacheRequest(String key, ByteBuf extras, ByteBuf content)
Create a new DefaultBinaryMemcacheRequest with the header, key, extras and content.
key - the key to use.extras - the extras to use.content - the content of the full request.public ByteBuf content()
content in interface ByteBufHolderpublic int refCnt()
refCnt in interface ReferenceCountedrefCnt in class AbstractBinaryMemcacheMessagepublic FullBinaryMemcacheRequest retain()
retain in interface FullBinaryMemcacheRequestretain in interface FullMemcacheMessageretain in interface LastMemcacheContentretain in interface ByteBufHolderretain in interface ReferenceCountedretain in class DefaultBinaryMemcacheRequestpublic FullBinaryMemcacheRequest retain(int increment)
retain in interface FullBinaryMemcacheRequestretain in interface FullMemcacheMessageretain in interface LastMemcacheContentretain in interface ByteBufHolderretain in interface ReferenceCountedretain in class DefaultBinaryMemcacheRequestpublic boolean release()
release in interface ReferenceCountedrelease in class AbstractBinaryMemcacheMessagepublic boolean release(int decrement)
release in interface ReferenceCountedrelease in class AbstractBinaryMemcacheMessagepublic FullBinaryMemcacheRequest copy()
copy in interface FullBinaryMemcacheRequestcopy in interface FullMemcacheMessagecopy in interface LastMemcacheContentcopy in interface MemcacheContentcopy in interface ByteBufHolderpublic FullBinaryMemcacheRequest duplicate()
duplicate in interface FullBinaryMemcacheRequestduplicate in interface FullMemcacheMessageduplicate in interface LastMemcacheContentduplicate in interface MemcacheContentduplicate in interface ByteBufHolderCopyright © 2016 Couchbase, Inc.. All rights reserved.