Package io.netty.buffer
Interface ByteBufHolder
-
- All Superinterfaces:
io.netty.util.ReferenceCounted
- All Known Implementing Classes:
DefaultByteBufHolder
public interface ByteBufHolder extends io.netty.util.ReferenceCountedA packet which is send or receive.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ByteBufcontent()Return the data which is held by thisByteBufHolder.ByteBufHoldercopy()Creates a deep copy of thisByteBufHolder.ByteBufHolderduplicate()Duplicates thisByteBufHolder.ByteBufHolderreplace(ByteBuf content)Returns a newByteBufHolderwhich contains the specifiedcontent.ByteBufHolderretain()ByteBufHolderretain(int increment)ByteBufHolderretainedDuplicate()Duplicates thisByteBufHolder.ByteBufHoldertouch()ByteBufHoldertouch(Object hint)
-
-
-
Method Detail
-
content
ByteBuf content()
Return the data which is held by thisByteBufHolder.
-
copy
ByteBufHolder copy()
Creates a deep copy of thisByteBufHolder.
-
duplicate
ByteBufHolder duplicate()
Duplicates thisByteBufHolder. Be aware that this will not automatically callretain().
-
retainedDuplicate
ByteBufHolder retainedDuplicate()
Duplicates thisByteBufHolder. This method returns a retained duplicate unlikeduplicate().- See Also:
ByteBuf.retainedDuplicate()
-
replace
ByteBufHolder replace(ByteBuf content)
Returns a newByteBufHolderwhich contains the specifiedcontent.
-
retain
ByteBufHolder retain()
- Specified by:
retainin interfaceio.netty.util.ReferenceCounted
-
retain
ByteBufHolder retain(int increment)
- Specified by:
retainin interfaceio.netty.util.ReferenceCounted
-
touch
ByteBufHolder touch()
- Specified by:
touchin interfaceio.netty.util.ReferenceCounted
-
touch
ByteBufHolder touch(Object hint)
- Specified by:
touchin interfaceio.netty.util.ReferenceCounted
-
-