public interface ByteBufHolder extends ReferenceCounted
Modifier and Type | Method and Description |
---|---|
ByteBuf |
content()
Return the data which is held by this
ByteBufHolder . |
ByteBufHolder |
copy()
Create a deep copy of this
ByteBufHolder . |
ByteBufHolder |
duplicate()
Duplicate the
ByteBufHolder . |
ByteBufHolder |
retain()
Increases the reference count by
1 . |
ByteBufHolder |
retain(int increment)
Increases the reference count by the specified
increment . |
ByteBufHolder |
touch()
Records the current access location of this object for debugging purposes.
|
ByteBufHolder |
touch(Object hint)
Records the current access location of this object with an additonal 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 retain()
ReferenceCounted
1
.retain
in interface ReferenceCounted
ByteBufHolder retain(int increment)
ReferenceCounted
increment
.retain
in interface ReferenceCounted
ByteBufHolder touch()
ReferenceCounted
ResourceLeakDetector
. This method is a shortcut to touch(null)
.touch
in interface ReferenceCounted
ByteBufHolder touch(Object hint)
ReferenceCounted
ResourceLeakDetector
.touch
in interface ReferenceCounted
Copyright © 2008–2015 The Netty Project. All rights reserved.