Package org.eclipse.jetty.io
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.
RetainableByteBuffer
s 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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
append
(RetainableByteBuffer buffer) int
getSize()
long
void
insert
(int index, RetainableByteBuffer buffer) void
release()
-
Constructor Details
-
Accumulator
public Accumulator()
-
-
Method Details
-
append
-
insert
-
getByteBuffers
-
getTotalLength
public long getTotalLength() -
getSize
public int getSize() -
release
public void release()
-