Class ByteBufferPool.Accumulator
java.lang.Object
org.eclipse.jetty.io.ByteBufferPool.Accumulator
- Enclosing interface:
ByteBufferPool
Accumulates a sequence of RetainableByteBuffer that
are typically created during the generation of protocol bytes.
RetainableByteBuffers can be either
appended to the sequence,
or inserted at a
specific position in the sequence, and then
released when they are consumed.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappend(RetainableByteBuffer buffer) intgetSize()longvoidinsert(int index, RetainableByteBuffer buffer) voidrelease()
-
Constructor Details
-
Accumulator
public Accumulator()
-
-
Method Details
-
append
-
insert
-
getByteBuffers
-
getTotalLength
public long getTotalLength() -
getSize
public int getSize() -
release
public void release()
-