Content.Chunk s used to facilitate minimal copy
aggregation of multiple chunks.
| Modifier and Type | Class and Description |
|---|---|
| private abstract static class |
| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private int | |
| private static final ByteBufferPool |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public void | |
| public int | |
| public CompletableFuture | |
| public CompletableFuture | |
| public CompletableFuture | readAll(Content.
The source,Content. to readThe pool, boolean ByteBufferPool to acquire the buffer from, or null for a non Retainable bufferTrue if the buffer should be direct. direct, int The maximum size to read, or -1 for no limit maxSize)Returns: A |
| public byte[] | |
| public RetainableByteBuffer |
| _chunks | back to summary |
|---|---|
| private final List<Content. | |
| _length | back to summary |
|---|---|
| private int _length | |
| NON_POOLING | back to summary |
|---|---|
| private static final ByteBufferPool NON_POOLING | |
| ChunkAccumulator | back to summary |
|---|---|
| public ChunkAccumulator() | |
| add | back to summary |
|---|---|
| public boolean add(Content. Add a
| |
| close | back to summary |
|---|---|
| public void close() | |
| length | back to summary |
|---|---|
| public int length() Get the total length of the accumulated
| |
| readAll | back to summary |
|---|---|
| public CompletableFuture | |
| readAll | back to summary |
|---|---|
| public CompletableFuture | |
| readAll | back to summary |
|---|---|
public CompletableFuture
| |
| take | back to summary |
|---|---|
| public byte[] take() | |
| take | back to summary |
|---|---|
| public RetainableByteBuffer take(ByteBufferPool pool, boolean direct) | |
| Modifier and Type | Field and Description |
|---|---|
| private final ChunkAccumulator | |
| private final int | |
| private final Content. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| protected abstract T |
| _accumulator | back to summary |
|---|---|
| private final ChunkAccumulator _accumulator | |
| _maxLength | back to summary |
|---|---|
| private final int _maxLength | |
| _source | back to summary |
|---|---|
| private final Content. | |
| AccumulatorTask | back to summary |
|---|---|
| private AccumulatorTask(Content. | |
| run | back to summary |
|---|---|
| public void run() Implements java. Doc from java. Runs this operation.
| |
| take | back to summary |
|---|---|
| protected abstract T take(ChunkAccumulator accumulator) | |