Class DefaultFullBinaryMemcacheResponse
- java.lang.Object
-
- com.couchbase.client.deps.io.netty.handler.codec.memcache.AbstractMemcacheObject
-
- com.couchbase.client.deps.io.netty.handler.codec.memcache.binary.AbstractBinaryMemcacheMessage
-
- com.couchbase.client.deps.io.netty.handler.codec.memcache.binary.DefaultBinaryMemcacheResponse
-
- com.couchbase.client.deps.io.netty.handler.codec.memcache.binary.DefaultFullBinaryMemcacheResponse
-
- All Implemented Interfaces:
BinaryMemcacheMessage
,BinaryMemcacheResponse
,FullBinaryMemcacheResponse
,FullMemcacheMessage
,LastMemcacheContent
,MemcacheContent
,MemcacheMessage
,MemcacheObject
,ByteBufHolder
,ReferenceCounted
public class DefaultFullBinaryMemcacheResponse extends DefaultBinaryMemcacheResponse implements FullBinaryMemcacheResponse
The default implementation of aFullBinaryMemcacheResponse
.
-
-
Field Summary
-
Fields inherited from class com.couchbase.client.deps.io.netty.handler.codec.memcache.binary.DefaultBinaryMemcacheResponse
RESPONSE_MAGIC_BYTE
-
Fields inherited from interface com.couchbase.client.deps.io.netty.handler.codec.memcache.LastMemcacheContent
EMPTY_LAST_CONTENT
-
-
Constructor Summary
Constructors Constructor Description DefaultFullBinaryMemcacheResponse(byte[] key, ByteBuf extras)
Create a newDefaultFullBinaryMemcacheResponse
with the header, key and extras.DefaultFullBinaryMemcacheResponse(byte[] key, ByteBuf extras, ByteBuf content)
Create a newDefaultFullBinaryMemcacheResponse
with the header, key, extras and content.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ByteBuf
content()
FullBinaryMemcacheResponse
copy()
FullBinaryMemcacheResponse
duplicate()
int
refCnt()
boolean
release()
boolean
release(int decrement)
FullBinaryMemcacheResponse
replace(ByteBuf content)
FullBinaryMemcacheResponse
retain()
FullBinaryMemcacheResponse
retain(int increment)
FullBinaryMemcacheResponse
retainedDuplicate()
FullBinaryMemcacheResponse
setContent(ByteBuf content)
FullBinaryMemcacheResponse
touch()
FullBinaryMemcacheResponse
touch(Object hint)
-
Methods inherited from class com.couchbase.client.deps.io.netty.handler.codec.memcache.binary.DefaultBinaryMemcacheResponse
getStatus, setStatus
-
Methods inherited from class com.couchbase.client.deps.io.netty.handler.codec.memcache.binary.AbstractBinaryMemcacheMessage
getCAS, getDataType, getExtras, getExtrasLength, getFramingExtras, getFramingExtrasLength, getKey, getKeyLength, getMagic, getOpaque, getOpcode, getTotalBodyLength, setCAS, setDataType, setExtras, setExtrasLength, setFramingExtras, setFramingExtrasLength, setKey, setKeyLength, setMagic, setOpaque, setOpcode, setTotalBodyLength
-
Methods inherited from class com.couchbase.client.deps.io.netty.handler.codec.memcache.AbstractMemcacheObject
getDecoderResult, setDecoderResult
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.couchbase.client.deps.io.netty.handler.codec.memcache.binary.BinaryMemcacheMessage
getCAS, getDataType, getExtras, getExtrasLength, getFramingExtras, getFramingExtrasLength, getKey, getKeyLength, getMagic, getOpaque, getOpcode, getTotalBodyLength, setCAS, setDataType, setExtras, setExtrasLength, setFramingExtras, setFramingExtrasLength, setKey, setKeyLength, setMagic, setOpaque, setOpcode, setTotalBodyLength
-
Methods inherited from interface com.couchbase.client.deps.io.netty.handler.codec.memcache.binary.BinaryMemcacheResponse
getStatus, setStatus
-
Methods inherited from interface com.couchbase.client.deps.io.netty.handler.codec.memcache.MemcacheObject
getDecoderResult, setDecoderResult
-
-
-
-
Constructor Detail
-
DefaultFullBinaryMemcacheResponse
public DefaultFullBinaryMemcacheResponse(byte[] key, ByteBuf extras)
Create a newDefaultFullBinaryMemcacheResponse
with the header, key and extras.- Parameters:
key
- the key to use.extras
- the extras to use.
-
DefaultFullBinaryMemcacheResponse
public DefaultFullBinaryMemcacheResponse(byte[] key, ByteBuf extras, ByteBuf content)
Create a newDefaultFullBinaryMemcacheResponse
with the header, key, extras and content.- Parameters:
key
- the key to use.extras
- the extras to use.content
- the content of the full request.
-
-
Method Detail
-
content
public ByteBuf content()
- Specified by:
content
in interfaceByteBufHolder
-
refCnt
public int refCnt()
- Specified by:
refCnt
in interfaceReferenceCounted
- Overrides:
refCnt
in classAbstractBinaryMemcacheMessage
-
retain
public FullBinaryMemcacheResponse retain()
- Specified by:
retain
in interfaceByteBufHolder
- Specified by:
retain
in interfaceFullBinaryMemcacheResponse
- Specified by:
retain
in interfaceFullMemcacheMessage
- Specified by:
retain
in interfaceLastMemcacheContent
- Specified by:
retain
in interfaceMemcacheContent
- Specified by:
retain
in interfaceReferenceCounted
- Overrides:
retain
in classDefaultBinaryMemcacheResponse
-
retain
public FullBinaryMemcacheResponse retain(int increment)
- Specified by:
retain
in interfaceByteBufHolder
- Specified by:
retain
in interfaceFullBinaryMemcacheResponse
- Specified by:
retain
in interfaceFullMemcacheMessage
- Specified by:
retain
in interfaceLastMemcacheContent
- Specified by:
retain
in interfaceReferenceCounted
- Overrides:
retain
in classDefaultBinaryMemcacheResponse
-
release
public boolean release()
- Specified by:
release
in interfaceReferenceCounted
- Overrides:
release
in classAbstractBinaryMemcacheMessage
-
release
public boolean release(int decrement)
- Specified by:
release
in interfaceReferenceCounted
- Overrides:
release
in classAbstractBinaryMemcacheMessage
-
copy
public FullBinaryMemcacheResponse copy()
- Specified by:
copy
in interfaceByteBufHolder
- Specified by:
copy
in interfaceFullBinaryMemcacheResponse
- Specified by:
copy
in interfaceFullMemcacheMessage
- Specified by:
copy
in interfaceLastMemcacheContent
- Specified by:
copy
in interfaceMemcacheContent
-
duplicate
public FullBinaryMemcacheResponse duplicate()
- Specified by:
duplicate
in interfaceByteBufHolder
- Specified by:
duplicate
in interfaceFullBinaryMemcacheResponse
- Specified by:
duplicate
in interfaceFullMemcacheMessage
- Specified by:
duplicate
in interfaceLastMemcacheContent
- Specified by:
duplicate
in interfaceMemcacheContent
-
setContent
public FullBinaryMemcacheResponse setContent(ByteBuf content)
- Specified by:
setContent
in interfaceFullBinaryMemcacheResponse
-
retainedDuplicate
public FullBinaryMemcacheResponse retainedDuplicate()
- Specified by:
retainedDuplicate
in interfaceByteBufHolder
-
replace
public FullBinaryMemcacheResponse replace(ByteBuf content)
- Specified by:
replace
in interfaceByteBufHolder
-
touch
public FullBinaryMemcacheResponse touch()
- Specified by:
touch
in interfaceByteBufHolder
- Specified by:
touch
in interfaceReferenceCounted
- Overrides:
touch
in classAbstractBinaryMemcacheMessage
-
touch
public FullBinaryMemcacheResponse touch(Object hint)
- Specified by:
touch
in interfaceByteBufHolder
- Specified by:
touch
in interfaceReferenceCounted
- Overrides:
touch
in classAbstractBinaryMemcacheMessage
-
-