Package io.servicetalk.buffer.api
Interface BufferHolder
Deprecated.
This API is going to be removed in future releases with no planned replacement. If it cannot be
removed from your application, consider copying it into your codebase.
An object which contains a
Buffer
.-
Method Summary
Modifier and TypeMethodDescriptioncontent()
Deprecated.The buffer contained by this object.Deprecated.Duplicates thisBufferHolder
.Deprecated.Returns a newBufferHolder
which contains the specifiedcontent
.
-
Method Details
-
content
Buffer content()Deprecated.The buffer contained by this object.- Returns:
- The buffer contained by this object.
-
duplicate
BufferHolder duplicate()Deprecated.Duplicates thisBufferHolder
.- Returns:
- Duplicates this
BufferHolder
.
-
replace
Deprecated.Returns a newBufferHolder
which contains the specifiedcontent
.- Parameters:
content
- TheBuffer
to replace what is currently returned bycontent()
.- Returns:
- a new
BufferHolder
which contains the specifiedcontent
.
-