Package org.jppf.io

Class BoundedByteArrayPool

All Implemented Interfaces:
ObjectPool<byte[]>

public class BoundedByteArrayPool extends AbstractBoundedObjectPoolQueue<byte[]>
A bounded pool which holds byte arrays with a fixed size.
Author:
Laurent Cohen
  • Constructor Details

    • BoundedByteArrayPool

      public BoundedByteArrayPool(int capacity, int bufferSize)
      Initiialize this pool with the specified maximum capacity and buffer size.
      Parameters:
      capacity - the max capacity of this pool.
      bufferSize - the size of byte arrays managed by this pool.
  • Method Details