public class DefaultFullBinaryMemcacheResponse extends DefaultBinaryMemcacheResponse implements FullBinaryMemcacheResponse
The default implementation of a FullBinaryMemcacheResponse.
RESPONSE_MAGIC_BYTEEMPTY_LAST_CONTENT| Constructor and Description |
|---|
DefaultFullBinaryMemcacheResponse(String key,
ByteBuf extras)
Create a new
DefaultFullBinaryMemcacheResponse with the header, key and extras. |
DefaultFullBinaryMemcacheResponse(String key,
ByteBuf extras,
ByteBuf content)
Create a new
DefaultFullBinaryMemcacheResponse with the header, key, extras and content. |
| Modifier and Type | Method and Description |
|---|---|
ByteBuf |
content() |
FullBinaryMemcacheResponse |
copy() |
FullBinaryMemcacheResponse |
duplicate() |
int |
refCnt() |
boolean |
release() |
boolean |
release(int decrement) |
FullBinaryMemcacheResponse |
retain() |
FullBinaryMemcacheResponse |
retain(int increment) |
getStatus, setStatusgetCAS, 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, waitgetStatus, setStatusgetCAS, getDataType, getExtras, getExtrasLength, getKey, getKeyLength, getMagic, getOpaque, getOpcode, getTotalBodyLength, setCAS, setDataType, setExtras, setExtrasLength, setKey, setKeyLength, setMagic, setOpaque, setOpcode, setTotalBodyLengthpublic DefaultFullBinaryMemcacheResponse(String key, ByteBuf extras)
Create a new DefaultFullBinaryMemcacheResponse with the header, key and extras.
key - the key to use.extras - the extras to use.public DefaultFullBinaryMemcacheResponse(String key, ByteBuf extras, ByteBuf content)
Create a new DefaultFullBinaryMemcacheResponse 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 FullBinaryMemcacheResponse retain()
retain in interface FullBinaryMemcacheResponseretain in interface FullMemcacheMessageretain in interface LastMemcacheContentretain in interface ByteBufHolderretain in interface ReferenceCountedretain in class DefaultBinaryMemcacheResponsepublic FullBinaryMemcacheResponse retain(int increment)
retain in interface FullBinaryMemcacheResponseretain in interface FullMemcacheMessageretain in interface LastMemcacheContentretain in interface ByteBufHolderretain in interface ReferenceCountedretain in class DefaultBinaryMemcacheResponsepublic boolean release()
release in interface ReferenceCountedrelease in class AbstractBinaryMemcacheMessagepublic boolean release(int decrement)
release in interface ReferenceCountedrelease in class AbstractBinaryMemcacheMessagepublic FullBinaryMemcacheResponse copy()
copy in interface FullBinaryMemcacheResponsecopy in interface FullMemcacheMessagecopy in interface LastMemcacheContentcopy in interface MemcacheContentcopy in interface ByteBufHolderpublic FullBinaryMemcacheResponse duplicate()
duplicate in interface FullBinaryMemcacheResponseduplicate in interface FullMemcacheMessageduplicate in interface LastMemcacheContentduplicate in interface MemcacheContentduplicate in interface ByteBufHolderCopyright © 2016 Couchbase, Inc.. All rights reserved.