@UnstableApi public interface LastMemcacheContent extends MemcacheContent
MemcacheContent
which signals the end of the content batch.
Note that by design, even when no content is emitted by the protocol, an
empty LastMemcacheContent
is issued to make the upstream parsing
easier.Modifier and Type | Field and Description |
---|---|
static LastMemcacheContent |
EMPTY_LAST_CONTENT |
Modifier and Type | Method and Description |
---|---|
LastMemcacheContent |
copy()
Creates a deep copy of this
ByteBufHolder . |
LastMemcacheContent |
duplicate()
Duplicates this
ByteBufHolder . |
LastMemcacheContent |
replace(ByteBuf content)
Returns a new
ByteBufHolder which contains the specified content . |
LastMemcacheContent |
retain()
Increases the reference count by
1 . |
LastMemcacheContent |
retain(int increment)
Increases the reference count by the specified
increment . |
LastMemcacheContent |
retainedDuplicate()
Duplicates this
ByteBufHolder . |
LastMemcacheContent |
touch()
Records the current access location of this object for debugging purposes.
|
LastMemcacheContent |
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
static final LastMemcacheContent EMPTY_LAST_CONTENT
LastMemcacheContent copy()
ByteBufHolder
ByteBufHolder
.copy
in interface ByteBufHolder
copy
in interface MemcacheContent
LastMemcacheContent duplicate()
ByteBufHolder
ByteBufHolder
. Be aware that this will not automatically call ByteBufHolder.retain()
.duplicate
in interface ByteBufHolder
duplicate
in interface MemcacheContent
LastMemcacheContent retainedDuplicate()
ByteBufHolder
ByteBufHolder
. This method returns a retained duplicate unlike ByteBufHolder.duplicate()
.retainedDuplicate
in interface ByteBufHolder
retainedDuplicate
in interface MemcacheContent
ByteBuf.retainedDuplicate()
LastMemcacheContent replace(ByteBuf content)
ByteBufHolder
ByteBufHolder
which contains the specified content
.replace
in interface ByteBufHolder
replace
in interface MemcacheContent
LastMemcacheContent retain(int increment)
ReferenceCounted
increment
.retain
in interface ByteBufHolder
retain
in interface MemcacheContent
retain
in interface ReferenceCounted
LastMemcacheContent retain()
ReferenceCounted
1
.retain
in interface ByteBufHolder
retain
in interface MemcacheContent
retain
in interface ReferenceCounted
LastMemcacheContent touch()
ReferenceCounted
ResourceLeakDetector
. This method is a shortcut to touch(null)
.touch
in interface ByteBufHolder
touch
in interface MemcacheContent
touch
in interface ReferenceCounted
LastMemcacheContent touch(Object hint)
ReferenceCounted
ResourceLeakDetector
.touch
in interface ByteBufHolder
touch
in interface MemcacheContent
touch
in interface ReferenceCounted
Copyright © 2008–2017 The Netty Project. All rights reserved.