Class ByteBufferPool.Accumulator

java.lang.Object
org.eclipse.jetty.io.ByteBufferPool.Accumulator
Enclosing interface:
ByteBufferPool

public static class ByteBufferPool.Accumulator extends Object

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 Details

    • Accumulator

      public Accumulator()
  • Method Details

    • append

      public void append(RetainableByteBuffer buffer)
    • insert

      public void insert(int index, RetainableByteBuffer buffer)
    • getByteBuffers

      public List<ByteBuffer> getByteBuffers()
    • getTotalLength

      public long getTotalLength()
    • getSize

      public int getSize()
    • release

      public void release()