Package org.eclipse.jetty.io
Class LogarithmicArrayByteBufferPool
- java.lang.Object
-
- org.eclipse.jetty.io.ArrayByteBufferPool
-
- org.eclipse.jetty.io.LogarithmicArrayByteBufferPool
-
- All Implemented Interfaces:
ByteBufferPool
,Dumpable
@Deprecated(since="2021-05-27") public class LogarithmicArrayByteBufferPool extends ArrayByteBufferPool
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.Extension of theArrayByteBufferPool
whose bucket sizes increase exponentially instead of linearly. Each bucket will be double the size of the previous bucket, this decreases the amounts of buckets required which can lower total memory usage if buffers are often being acquired of different sizes. However as there are fewer buckets this will also increase the contention on each bucket.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.io.ByteBufferPool
ByteBufferPool.Bucket, ByteBufferPool.Lease
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
Dumpable.DumpableContainer
-
-
Constructor Summary
Constructors Constructor Description LogarithmicArrayByteBufferPool()
Deprecated.Creates a new ByteBufferPool with a default configuration.LogarithmicArrayByteBufferPool(int minCapacity, int maxCapacity)
Deprecated.Creates a new ByteBufferPool with the given configuration.LogarithmicArrayByteBufferPool(int minCapacity, int maxCapacity, int maxQueueLength)
Deprecated.Creates a new ByteBufferPool with the given configuration.LogarithmicArrayByteBufferPool(int minCapacity, int maxCapacity, int maxQueueLength, long maxHeapMemory, long maxDirectMemory)
Deprecated.Creates a new ByteBufferPool with the given configuration.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description long
getDirectMemory()
Deprecated.long
getHeapMemory()
Deprecated.long
getMaxDirectMemory()
Deprecated.long
getMaxHeapMemory()
Deprecated.long
getMemory(boolean direct)
Deprecated.-
Methods inherited from class org.eclipse.jetty.io.ArrayByteBufferPool
acquire, clear, dump, getDirectByteBufferCount, getHeapByteBufferCount, isDetailedDump, release, setDetailedDump, toString
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.jetty.io.ByteBufferPool
newByteBuffer, remove
-
-
-
-
Constructor Detail
-
LogarithmicArrayByteBufferPool
public LogarithmicArrayByteBufferPool()
Deprecated.Creates a new ByteBufferPool with a default configuration.
-
LogarithmicArrayByteBufferPool
public LogarithmicArrayByteBufferPool(int minCapacity, int maxCapacity)
Deprecated.Creates a new ByteBufferPool with the given configuration.- Parameters:
minCapacity
- the minimum ByteBuffer capacitymaxCapacity
- the maximum ByteBuffer capacity
-
LogarithmicArrayByteBufferPool
public LogarithmicArrayByteBufferPool(int minCapacity, int maxCapacity, int maxQueueLength)
Deprecated.Creates a new ByteBufferPool with the given configuration.- Parameters:
minCapacity
- the minimum ByteBuffer capacitymaxCapacity
- the maximum ByteBuffer capacitymaxQueueLength
- the maximum ByteBuffer queue length
-
LogarithmicArrayByteBufferPool
public LogarithmicArrayByteBufferPool(int minCapacity, int maxCapacity, int maxQueueLength, long maxHeapMemory, long maxDirectMemory)
Deprecated.Creates a new ByteBufferPool with the given configuration.- Parameters:
minCapacity
- the minimum ByteBuffer capacitymaxCapacity
- the maximum ByteBuffer capacitymaxQueueLength
- the maximum ByteBuffer queue lengthmaxHeapMemory
- the max heap memory in bytesmaxDirectMemory
- the max direct memory in bytes
-
-
Method Detail
-
getDirectMemory
@ManagedAttribute("The bytes retained by direct ByteBuffers") public long getDirectMemory()
Deprecated.
-
getHeapMemory
@ManagedAttribute("The bytes retained by heap ByteBuffers") public long getHeapMemory()
Deprecated.
-
getMaxDirectMemory
@ManagedAttribute("The max num of bytes that can be retained from direct ByteBuffers") public long getMaxDirectMemory()
Deprecated.
-
getMaxHeapMemory
@ManagedAttribute("The max num of bytes that can be retained from heap ByteBuffers") public long getMaxHeapMemory()
Deprecated.
-
getMemory
public long getMemory(boolean direct)
Deprecated.
-
-