Class ThreadSafeLenientFixedSizePool<T>

java.lang.Object
com.illumon.util.pool.ThreadSafeLenientFixedSizePool<T>
All Implemented Interfaces:
com.fishlib.base.pool.Pool<T>, com.fishlib.base.pool.Pool.MultiGiver<T>, com.fishlib.base.pool.Pool.MultiPool<T>, com.fishlib.base.pool.Pool.MultiTaker<T>, com.fishlib.base.pool.Pool.SinglePool<T>, PoolEx<T>

public class ThreadSafeLenientFixedSizePool<T>
extends Object
implements com.fishlib.base.pool.Pool.MultiPool<T>, PoolEx<T>
A pool that
  • holds at least size items,
  • creates size items in the pool immediately,
  • creates a new item when the pool underflows,
  • discards the item when the pool overflows,
  • optionally clears the items given to it, and
  • IS thread-safe
Forked from com.fishlib.base.pool.ThreadSafeLenientFixedSizePool January 2021