Package org.eclipse.jetty.io
Class LogarithmicArrayByteBufferPool.LogarithmicRetainablePool
java.lang.Object
org.eclipse.jetty.io.ArrayRetainableByteBufferPool
org.eclipse.jetty.io.LogarithmicArrayByteBufferPool.LogarithmicRetainablePool
- All Implemented Interfaces:
RetainableByteBufferPool
,Dumpable
- Enclosing class:
- LogarithmicArrayByteBufferPool
public static class LogarithmicArrayByteBufferPool.LogarithmicRetainablePool
extends ArrayRetainableByteBufferPool
A variant of the
ArrayRetainableByteBufferPool
that
uses buckets of buffers that increase in size by a power of
2 (eg 1k, 2k, 4k, 8k, etc.).-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
Dumpable.DumpableContainer
Nested classes/interfaces inherited from interface org.eclipse.jetty.io.RetainableByteBufferPool
RetainableByteBufferPool.NotRetainedByteBufferPool
-
Field Summary
-
Constructor Summary
ConstructorDescriptionLogarithmicRetainablePool
(int minCapacity, int maxCapacity, int maxBucketSize) LogarithmicRetainablePool
(int minCapacity, int maxCapacity, int maxBucketSize, long maxHeapMemory, long maxDirectMemory) -
Method Summary
Methods inherited from class org.eclipse.jetty.io.ArrayRetainableByteBufferPool
acquire, allocate, allocateDirect, clear, dump, getAvailableDirectByteBufferCount, getAvailableDirectMemory, getAvailableHeapByteBufferCount, getAvailableHeapMemory, getDirectByteBufferCount, getDirectMemory, getHeapByteBufferCount, getHeapMemory, getMaxCapacity, getMinCapacity, poolFor, removed, toString
-
Constructor Details
-
LogarithmicRetainablePool
public LogarithmicRetainablePool() -
LogarithmicRetainablePool
public LogarithmicRetainablePool(int minCapacity, int maxCapacity, int maxBucketSize) -
LogarithmicRetainablePool
public LogarithmicRetainablePool(int minCapacity, int maxCapacity, int maxBucketSize, long maxHeapMemory, long maxDirectMemory)
-