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 defaultMemcacheContent
implementation.
-
-
Constructor Summary
Constructors Constructor Description DefaultMemcacheContent(ByteBuf content)
Creates a new instance with the specified content.
-
Method Summary
All Methods Instance Methods Concrete Methods 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 Detail
-
DefaultMemcacheContent
public DefaultMemcacheContent(ByteBuf content)
Creates a new instance with the specified content.
-
-
Method Detail
-
content
public ByteBuf content()
- Specified by:
content
in interfaceByteBufHolder
-
copy
public MemcacheContent copy()
- Specified by:
copy
in interfaceByteBufHolder
- Specified by:
copy
in interfaceMemcacheContent
-
duplicate
public MemcacheContent duplicate()
- Specified by:
duplicate
in interfaceByteBufHolder
- Specified by:
duplicate
in interfaceMemcacheContent
-
refCnt
public int refCnt()
- Specified by:
refCnt
in interfaceReferenceCounted
-
retain
public MemcacheContent retain()
- Specified by:
retain
in interfaceByteBufHolder
- Specified by:
retain
in interfaceMemcacheContent
- Specified by:
retain
in interfaceReferenceCounted
-
retain
public MemcacheContent retain(int increment)
- Specified by:
retain
in interfaceByteBufHolder
- Specified by:
retain
in interfaceReferenceCounted
-
retainedDuplicate
public MemcacheContent retainedDuplicate()
- Specified by:
retainedDuplicate
in interfaceByteBufHolder
-
touch
public MemcacheContent touch()
- Specified by:
touch
in interfaceByteBufHolder
- Specified by:
touch
in interfaceReferenceCounted
-
touch
public MemcacheContent touch(Object o)
- Specified by:
touch
in interfaceByteBufHolder
- Specified by:
touch
in interfaceReferenceCounted
-
replace
public MemcacheContent replace(ByteBuf content)
- 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
-
-