public interface ByteBufHolder
extends io.netty.util.ReferenceCounted
Modifier and Type | Method and Description |
---|---|
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() |
ByteBufHolder |
retain(int increment) |
ByteBufHolder |
retainedDuplicate()
Duplicates this
ByteBufHolder . |
ByteBufHolder |
touch() |
ByteBufHolder |
touch(Object hint) |
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()
.ByteBuf.retainedDuplicate()
ByteBufHolder replace(ByteBuf content)
ByteBufHolder
which contains the specified content
.ByteBufHolder retain()
retain
in interface io.netty.util.ReferenceCounted
ByteBufHolder retain(int increment)
retain
in interface io.netty.util.ReferenceCounted
ByteBufHolder touch()
touch
in interface io.netty.util.ReferenceCounted
ByteBufHolder touch(Object hint)
touch
in interface io.netty.util.ReferenceCounted
Copyright © 2008–2019 The Netty Project. All rights reserved.