Package io.netty.handler.codec.memcache
Class DefaultMemcacheContent
- java.lang.Object
-
- io.netty.util.AbstractReferenceCounted
-
- io.netty.handler.codec.memcache.AbstractMemcacheObject
-
- io.netty.handler.codec.memcache.DefaultMemcacheContent
-
- All Implemented Interfaces:
io.netty.buffer.ByteBufHolder,io.netty.handler.codec.DecoderResultProvider,MemcacheContent,MemcacheObject,io.netty.util.ReferenceCounted
- Direct Known Subclasses:
DefaultLastMemcacheContent
@UnstableApi public class DefaultMemcacheContent extends AbstractMemcacheObject implements MemcacheContent
The defaultMemcacheContentimplementation.
-
-
Constructor Summary
Constructors Constructor Description DefaultMemcacheContent(io.netty.buffer.ByteBuf content)Creates a new instance with the specified content.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.netty.buffer.ByteBufcontent()MemcacheContentcopy()protected voiddeallocate()MemcacheContentduplicate()MemcacheContentreplace(io.netty.buffer.ByteBuf content)MemcacheContentretain()MemcacheContentretain(int increment)MemcacheContentretainedDuplicate()StringtoString()MemcacheContenttouch()MemcacheContenttouch(Object hint)-
Methods inherited from class io.netty.handler.codec.memcache.AbstractMemcacheObject
decoderResult, setDecoderResult
-
Methods inherited from class io.netty.util.AbstractReferenceCounted
refCnt, release, release, setRefCnt
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
content
public io.netty.buffer.ByteBuf content()
- Specified by:
contentin interfaceio.netty.buffer.ByteBufHolder
-
copy
public MemcacheContent copy()
- Specified by:
copyin interfaceio.netty.buffer.ByteBufHolder- Specified by:
copyin interfaceMemcacheContent
-
duplicate
public MemcacheContent duplicate()
- Specified by:
duplicatein interfaceio.netty.buffer.ByteBufHolder- Specified by:
duplicatein interfaceMemcacheContent
-
retainedDuplicate
public MemcacheContent retainedDuplicate()
- Specified by:
retainedDuplicatein interfaceio.netty.buffer.ByteBufHolder- Specified by:
retainedDuplicatein interfaceMemcacheContent
-
replace
public MemcacheContent replace(io.netty.buffer.ByteBuf content)
- Specified by:
replacein interfaceio.netty.buffer.ByteBufHolder- Specified by:
replacein interfaceMemcacheContent
-
retain
public MemcacheContent retain()
- Specified by:
retainin interfaceio.netty.buffer.ByteBufHolder- Specified by:
retainin interfaceMemcacheContent- Specified by:
retainin interfaceio.netty.util.ReferenceCounted- Overrides:
retainin classio.netty.util.AbstractReferenceCounted
-
retain
public MemcacheContent retain(int increment)
- Specified by:
retainin interfaceio.netty.buffer.ByteBufHolder- Specified by:
retainin interfaceMemcacheContent- Specified by:
retainin interfaceio.netty.util.ReferenceCounted- Overrides:
retainin classio.netty.util.AbstractReferenceCounted
-
touch
public MemcacheContent touch()
- Specified by:
touchin interfaceio.netty.buffer.ByteBufHolder- Specified by:
touchin interfaceMemcacheContent- Specified by:
touchin interfaceio.netty.util.ReferenceCounted- Overrides:
touchin classio.netty.util.AbstractReferenceCounted
-
touch
public MemcacheContent touch(Object hint)
- Specified by:
touchin interfaceio.netty.buffer.ByteBufHolder- Specified by:
touchin interfaceMemcacheContent- Specified by:
touchin interfaceio.netty.util.ReferenceCounted
-
deallocate
protected void deallocate()
- Specified by:
deallocatein classio.netty.util.AbstractReferenceCounted
-
-