- <init>
Create a new buffer pool
- allocate
Allocate a buffer of the given size. This method blocks if there is not enough
memory and the buffer
- availableMemory
the total free memory both unallocated and in the free list
- deallocate
Return buffers to the pool. If they are of the poolable size add them to the
free list, otherwise ju
- queued
The number of threads blocked waiting on memory
- totalMemory
The total memory managed by this pool
- freeUp
Attempt to ensure we have at least the requested number of bytes of memory for
allocation by dealloc
- recordWaitTime
- freeSize
- poolableSize
The buffer size that will be retained in the free list after use
- safeAllocateByteBuffer
Allocate a buffer. If buffer allocation fails (e.g. because of OOM) then return
the size count back
- unallocatedMemory
Get the unallocated memory (not in the free list or in use)