@UnstableApi public interface MemcacheContent extends MemcacheObject, ByteBufHolder
AbstractMemcacheObjectDecoder
generates MemcacheContent
after
MemcacheMessage
when the content is large. If you prefer not to receive MemcacheContent
in your handler, place a aggregator after an implementation of the AbstractMemcacheObjectDecoder
in the ChannelPipeline
.Modifier and Type | Method and Description |
---|---|
MemcacheContent |
copy()
Creates a deep copy of this
ByteBufHolder . |
MemcacheContent |
duplicate()
Duplicates this
ByteBufHolder . |
MemcacheContent |
replace(ByteBuf content)
Returns a new
ByteBufHolder which contains the specified content . |
MemcacheContent |
retain()
Increases the reference count by
1 . |
MemcacheContent |
retain(int increment)
Increases the reference count by the specified
increment . |
MemcacheContent |
retainedDuplicate()
Duplicates this
ByteBufHolder . |
MemcacheContent |
touch()
Records the current access location of this object for debugging purposes.
|
MemcacheContent |
touch(Object hint)
Records the current access location of this object with an additional arbitrary information for debugging
purposes.
|
decoderResult, setDecoderResult
content
refCnt, release, release
MemcacheContent copy()
ByteBufHolder
ByteBufHolder
.copy
in interface ByteBufHolder
MemcacheContent duplicate()
ByteBufHolder
ByteBufHolder
. Be aware that this will not automatically call ByteBufHolder.retain()
.duplicate
in interface ByteBufHolder
MemcacheContent retainedDuplicate()
ByteBufHolder
ByteBufHolder
. This method returns a retained duplicate unlike ByteBufHolder.duplicate()
.retainedDuplicate
in interface ByteBufHolder
ByteBuf.retainedDuplicate()
MemcacheContent replace(ByteBuf content)
ByteBufHolder
ByteBufHolder
which contains the specified content
.replace
in interface ByteBufHolder
MemcacheContent retain()
ReferenceCounted
1
.retain
in interface ByteBufHolder
retain
in interface ReferenceCounted
MemcacheContent retain(int increment)
ReferenceCounted
increment
.retain
in interface ByteBufHolder
retain
in interface ReferenceCounted
MemcacheContent touch()
ReferenceCounted
ResourceLeakDetector
. This method is a shortcut to touch(null)
.touch
in interface ByteBufHolder
touch
in interface ReferenceCounted
MemcacheContent touch(Object hint)
ReferenceCounted
ResourceLeakDetector
.touch
in interface ByteBufHolder
touch
in interface ReferenceCounted
Copyright © 2008–2017 The Netty Project. All rights reserved.