public class DefaultFullBinaryMemcacheResponse extends DefaultBinaryMemcacheResponse implements FullBinaryMemcacheResponse
The default implementation of a FullBinaryMemcacheResponse
.
RESPONSE_MAGIC_BYTE
EMPTY_LAST_CONTENT
Constructor and Description |
---|
DefaultFullBinaryMemcacheResponse(byte[] key,
ByteBuf extras)
Create a new
DefaultFullBinaryMemcacheResponse with the header, key and extras. |
DefaultFullBinaryMemcacheResponse(byte[] 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, setStatus
getCAS, getDataType, getExtras, getExtrasLength, getKey, getKeyLength, getMagic, getOpaque, getOpcode, getTotalBodyLength, setCAS, setDataType, setExtras, setExtrasLength, setKey, setKeyLength, setMagic, setOpaque, setOpcode, setTotalBodyLength
getDecoderResult, setDecoderResult
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getStatus, setStatus
getCAS, getDataType, getExtras, getExtrasLength, getKey, getKeyLength, getMagic, getOpaque, getOpcode, getTotalBodyLength, setCAS, setDataType, setExtras, setExtrasLength, setKey, setKeyLength, setMagic, setOpaque, setOpcode, setTotalBodyLength
public DefaultFullBinaryMemcacheResponse(byte[] 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(byte[] 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 ByteBufHolder
public int refCnt()
refCnt
in interface ReferenceCounted
refCnt
in class AbstractBinaryMemcacheMessage
public FullBinaryMemcacheResponse retain()
retain
in interface FullBinaryMemcacheResponse
retain
in interface FullMemcacheMessage
retain
in interface LastMemcacheContent
retain
in interface ByteBufHolder
retain
in interface ReferenceCounted
retain
in class DefaultBinaryMemcacheResponse
public FullBinaryMemcacheResponse retain(int increment)
retain
in interface FullBinaryMemcacheResponse
retain
in interface FullMemcacheMessage
retain
in interface LastMemcacheContent
retain
in interface ByteBufHolder
retain
in interface ReferenceCounted
retain
in class DefaultBinaryMemcacheResponse
public boolean release()
release
in interface ReferenceCounted
release
in class AbstractBinaryMemcacheMessage
public boolean release(int decrement)
release
in interface ReferenceCounted
release
in class AbstractBinaryMemcacheMessage
public FullBinaryMemcacheResponse copy()
copy
in interface FullBinaryMemcacheResponse
copy
in interface FullMemcacheMessage
copy
in interface LastMemcacheContent
copy
in interface MemcacheContent
copy
in interface ByteBufHolder
public FullBinaryMemcacheResponse duplicate()
duplicate
in interface FullBinaryMemcacheResponse
duplicate
in interface FullMemcacheMessage
duplicate
in interface LastMemcacheContent
duplicate
in interface MemcacheContent
duplicate
in interface ByteBufHolder
Copyright © 2016 Couchbase, Inc.. All rights reserved.