Class ByteBufferCallbackAccumulator

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

public class ByteBufferCallbackAccumulator extends Object

This class can be used to accumulate pairs of ByteBuffer and Callback, and eventually copy these into a single ByteBuffer or byte array and succeed the callbacks.

This class is not thread safe and callers must do mutual exclusion.