Package 

Class FlexByteArrayPool


  • @ThreadSafe() 
    public class FlexByteArrayPool
    
                        

    A special byte-array pool designed to minimize allocations.

    The length of each bucket's free list is capped at the number of threads using the pool.

    The free list of each bucket uses OOMSoftReferences.

    • Constructor Summary

      Constructors 
      Constructor Description
      FlexByteArrayPool(MemoryTrimmableRegistry memoryTrimmableRegistry, PoolParams params)
    • Method Summary

      Modifier and Type Method Description
      CloseableReference<Array<byte>> get(int size)
      void release(Array<byte> value)
      Map<String, Integer> getStats()
      int getMinBufferSize()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait