Class ArrayByteBufferPool

java.lang.Object
org.eclipse.jetty.io.ArrayByteBufferPool
All Implemented Interfaces:
ByteBufferPool, Dumpable
Direct Known Subclasses:
LogarithmicArrayByteBufferPool

@ManagedObject public class ArrayByteBufferPool extends Object implements Dumpable

A ByteBuffer pool where ByteBuffers are held in queues that are held in array elements.

Given a capacity factor of 4096, the first array element holds a bucket of ByteBuffers each of capacity 4096, the second array element holds a bucket of ByteBuffers each of capacity 8192, and so on.

The maxHeapMemory and maxDirectMemory default heuristic is to use Runtime.maxMemory() divided by 4.