@UnstableApi public class DefaultLastMemcacheContent extends DefaultMemcacheContent implements LastMemcacheContent
LastMemcacheContent
.EMPTY_LAST_CONTENT
Constructor and Description |
---|
DefaultLastMemcacheContent() |
DefaultLastMemcacheContent(ByteBuf 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.
|
content, deallocate, toString
decoderResult, setDecoderResult
refCnt, release, release, setRefCnt
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
decoderResult, setDecoderResult
content
refCnt, release, release
public DefaultLastMemcacheContent()
public DefaultLastMemcacheContent(ByteBuf content)
public LastMemcacheContent retain()
ReferenceCounted
1
.retain
in interface ByteBufHolder
retain
in interface LastMemcacheContent
retain
in interface MemcacheContent
retain
in interface ReferenceCounted
retain
in class DefaultMemcacheContent
public LastMemcacheContent retain(int increment)
ReferenceCounted
increment
.retain
in interface ByteBufHolder
retain
in interface LastMemcacheContent
retain
in interface MemcacheContent
retain
in interface ReferenceCounted
retain
in class DefaultMemcacheContent
public LastMemcacheContent touch()
ReferenceCounted
ResourceLeakDetector
. This method is a shortcut to touch(null)
.touch
in interface ByteBufHolder
touch
in interface LastMemcacheContent
touch
in interface MemcacheContent
touch
in interface ReferenceCounted
touch
in class DefaultMemcacheContent
public LastMemcacheContent touch(Object hint)
ReferenceCounted
ResourceLeakDetector
.touch
in interface ByteBufHolder
touch
in interface LastMemcacheContent
touch
in interface MemcacheContent
touch
in interface ReferenceCounted
touch
in class DefaultMemcacheContent
public LastMemcacheContent copy()
ByteBufHolder
ByteBufHolder
.copy
in interface ByteBufHolder
copy
in interface LastMemcacheContent
copy
in interface MemcacheContent
copy
in class DefaultMemcacheContent
public LastMemcacheContent duplicate()
ByteBufHolder
ByteBufHolder
. Be aware that this will not automatically call ByteBufHolder.retain()
.duplicate
in interface ByteBufHolder
duplicate
in interface LastMemcacheContent
duplicate
in interface MemcacheContent
duplicate
in class DefaultMemcacheContent
public LastMemcacheContent retainedDuplicate()
ByteBufHolder
ByteBufHolder
. This method returns a retained duplicate unlike ByteBufHolder.duplicate()
.retainedDuplicate
in interface ByteBufHolder
retainedDuplicate
in interface LastMemcacheContent
retainedDuplicate
in interface MemcacheContent
retainedDuplicate
in class DefaultMemcacheContent
ByteBuf.retainedDuplicate()
public LastMemcacheContent replace(ByteBuf content)
ByteBufHolder
ByteBufHolder
which contains the specified content
.replace
in interface ByteBufHolder
replace
in interface LastMemcacheContent
replace
in interface MemcacheContent
replace
in class DefaultMemcacheContent
Copyright © 2008–2024 The Netty Project. All rights reserved.