Class ArrayRetainableByteBufferPool

java.lang.Object
org.eclipse.jetty.io.ArrayRetainableByteBufferPool
All Implemented Interfaces:
RetainableByteBufferPool, Dumpable
Direct Known Subclasses:
ArrayByteBufferPool.Retained, LogarithmicArrayByteBufferPool.LogarithmicRetainablePool, MappedByteBufferPool.Retained

@ManagedObject public class ArrayRetainableByteBufferPool extends Object implements RetainableByteBufferPool, 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.

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