public class DefaultFullBinaryMemcacheRequest extends DefaultBinaryMemcacheRequest implements FullBinaryMemcacheRequest
The default implementation of a FullBinaryMemcacheRequest
.
REQUEST_MAGIC_BYTE
EMPTY_LAST_CONTENT
Constructor and Description |
---|
DefaultFullBinaryMemcacheRequest(byte[] key,
ByteBuf extras)
Create a new
DefaultBinaryMemcacheRequest with the header, key and extras. |
DefaultFullBinaryMemcacheRequest(byte[] 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) |
FullBinaryMemcacheRequest |
setContent(ByteBuf content) |
getReserved, setReserved
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getReserved, setReserved
getCAS, getDataType, getExtras, getExtrasLength, getFramingExtras, getFramingExtrasLength, getKey, getKeyLength, getMagic, getOpaque, getOpcode, getTotalBodyLength, setCAS, setDataType, setExtras, setExtrasLength, setFramingExtras, setFramingExtrasLength, setKey, setKeyLength, setMagic, setOpaque, setOpcode, setTotalBodyLength
public DefaultFullBinaryMemcacheRequest(byte[] 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(byte[] 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 ByteBufHolder
public int refCnt()
refCnt
in interface ReferenceCounted
refCnt
in class AbstractBinaryMemcacheMessage
public FullBinaryMemcacheRequest retain()
retain
in interface FullBinaryMemcacheRequest
retain
in interface FullMemcacheMessage
retain
in interface LastMemcacheContent
retain
in interface ByteBufHolder
retain
in interface ReferenceCounted
retain
in class DefaultBinaryMemcacheRequest
public FullBinaryMemcacheRequest retain(int increment)
retain
in interface FullBinaryMemcacheRequest
retain
in interface FullMemcacheMessage
retain
in interface LastMemcacheContent
retain
in interface ByteBufHolder
retain
in interface ReferenceCounted
retain
in class DefaultBinaryMemcacheRequest
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 FullBinaryMemcacheRequest copy()
copy
in interface FullBinaryMemcacheRequest
copy
in interface FullMemcacheMessage
copy
in interface LastMemcacheContent
copy
in interface MemcacheContent
copy
in interface ByteBufHolder
public FullBinaryMemcacheRequest duplicate()
duplicate
in interface FullBinaryMemcacheRequest
duplicate
in interface FullMemcacheMessage
duplicate
in interface LastMemcacheContent
duplicate
in interface MemcacheContent
duplicate
in interface ByteBufHolder
public FullBinaryMemcacheRequest setContent(ByteBuf content)
setContent
in interface FullBinaryMemcacheRequest
Copyright © 2018 Couchbase, Inc.. All rights reserved.