Class ByteBufferAggregator

java.lang.Object
org.eclipse.jetty.io.ByteBufferAggregator

@Deprecated(forRemoval=true) public class ByteBufferAggregator extends Object
Deprecated, for removal: This API element is subject to removal in a future version.

Aggregates data into a single ByteBuffer of a specified maximum size.

The buffer automatically grows as data is written to it, up until it reaches the specified maximum size. Once the buffer is full, the aggregator will not aggregate any more bytes until its buffer is taken out, after which a new aggregate/take buffer cycle can start.

The buffers are taken from the supplied ByteBufferPool or freshly allocated if one is not supplied.