Class DefaultMemcacheContent
java.lang.Object
com.couchbase.client.deps.io.netty.handler.codec.memcache.AbstractMemcacheObject
com.couchbase.client.deps.io.netty.handler.codec.memcache.DefaultMemcacheContent
- All Implemented Interfaces:
MemcacheContent
,MemcacheObject
,ByteBufHolder
,ReferenceCounted
- Direct Known Subclasses:
DefaultLastMemcacheContent
public class DefaultMemcacheContent extends AbstractMemcacheObject implements MemcacheContent
The default
MemcacheContent
implementation.-
Constructor Summary
Constructors Constructor Description DefaultMemcacheContent(ByteBuf content)
Creates a new instance with the specified content. -
Method Summary
Modifier and Type Method Description ByteBuf
content()
MemcacheContent
copy()
MemcacheContent
duplicate()
int
refCnt()
boolean
release()
boolean
release(int decrement)
MemcacheContent
replace(ByteBuf content)
MemcacheContent
retain()
MemcacheContent
retain(int increment)
MemcacheContent
retainedDuplicate()
String
toString()
MemcacheContent
touch()
MemcacheContent
touch(Object o)
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, wait, wait, wait
Methods inherited from interface com.couchbase.client.deps.io.netty.handler.codec.memcache.MemcacheObject
getDecoderResult, setDecoderResult
-
Constructor Details
-
DefaultMemcacheContent
Creates a new instance with the specified content.
-
-
Method Details
-
content
- Specified by:
content
in interfaceByteBufHolder
-
copy
- Specified by:
copy
in interfaceByteBufHolder
- Specified by:
copy
in interfaceMemcacheContent
-
duplicate
- Specified by:
duplicate
in interfaceByteBufHolder
- Specified by:
duplicate
in interfaceMemcacheContent
-
refCnt
public int refCnt()- Specified by:
refCnt
in interfaceReferenceCounted
-
retain
- Specified by:
retain
in interfaceByteBufHolder
- Specified by:
retain
in interfaceMemcacheContent
- Specified by:
retain
in interfaceReferenceCounted
-
retain
- Specified by:
retain
in interfaceByteBufHolder
- Specified by:
retain
in interfaceReferenceCounted
-
retainedDuplicate
- Specified by:
retainedDuplicate
in interfaceByteBufHolder
-
touch
- Specified by:
touch
in interfaceByteBufHolder
- Specified by:
touch
in interfaceReferenceCounted
-
touch
- Specified by:
touch
in interfaceByteBufHolder
- Specified by:
touch
in interfaceReferenceCounted
-
replace
- Specified by:
replace
in interfaceByteBufHolder
-
release
public boolean release()- Specified by:
release
in interfaceReferenceCounted
-
release
public boolean release(int decrement)- Specified by:
release
in interfaceReferenceCounted
-
toString
-