Class ArrayByteBufferPool

java.lang.Object
org.eclipse.jetty.io.ArrayByteBufferPool
All Implemented Interfaces:
ByteBufferPool, org.eclipse.jetty.util.component.Dumpable
Direct Known Subclasses:
ArrayByteBufferPool.Quadratic, ArrayByteBufferPool.Tracking

@ManagedObject public class ArrayByteBufferPool extends Object implements ByteBufferPool, org.eclipse.jetty.util.component.Dumpable

A RetainableByteBuffer pool where RetainableByteBuffers are held in Pools that are held in array elements.

Given a capacity factor of 1024, the first array element holds a Pool of RetainableByteBuffers each of capacity 1024, the second array element holds a Pool of RetainableByteBuffers each of capacity 2048, and so on with capacities 3072, 4096, 5120, etc.

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