public interface ByteBufHolder extends ReferenceCounted
限定符和类型 | 方法和说明 |
---|---|
ByteBuf |
content()
Return the data which is held by this
ByteBufHolder . |
ByteBufHolder |
copy()
Creates a deep copy of this
ByteBufHolder . |
ByteBufHolder |
duplicate()
Duplicates this
ByteBufHolder . |
ByteBufHolder |
replace(ByteBuf content)
Returns a new
ByteBufHolder which contains the specified content . |
ByteBufHolder |
retain()
Increases the reference count by
1 . |
ByteBufHolder |
retain(int increment)
Increases the reference count by the specified
increment . |
ByteBufHolder |
retainedDuplicate()
Duplicates this
ByteBufHolder . |
ByteBufHolder |
touch()
Records the current access location of this object for debugging purposes.
|
ByteBufHolder |
touch(java.lang.Object hint)
Records the current access location of this object with an additional arbitrary information for debugging
purposes.
|
refCnt, release, release
ByteBuf content()
ByteBufHolder
.ByteBufHolder copy()
ByteBufHolder
.ByteBufHolder duplicate()
ByteBufHolder
. Be aware that this will not automatically call retain()
.ByteBufHolder retainedDuplicate()
ByteBufHolder
. This method returns a retained duplicate unlike duplicate()
.ByteBufHolder replace(ByteBuf content)
ByteBufHolder
which contains the specified content
.ByteBufHolder retain()
ReferenceCounted
1
.retain
在接口中 ReferenceCounted
ByteBufHolder retain(int increment)
ReferenceCounted
increment
.retain
在接口中 ReferenceCounted
ByteBufHolder touch()
ReferenceCounted
ResourceLeakDetector
. This method is a shortcut to touch(null)
.touch
在接口中 ReferenceCounted
ByteBufHolder touch(java.lang.Object hint)
ReferenceCounted
ResourceLeakDetector
.touch
在接口中 ReferenceCounted