Package io.deephaven.base.pool

  • Interface Summary
    Interface Description
    Pool<T>
    Provides a pool of reusable items.
    Pool.Factory  
    Pool.MultiGiver<T>
    Must implement at least: Multiple threads may call give(), one thread may call take()
    Pool.MultiPool<T>
    Must implement at least: Multiple threads may call give(), multiple threads may call take()
    Pool.MultiTaker<T>
    Must implement at least: Multiple threads may call take(), one thread may call give()
    Pool.SinglePool<T>
    Must implement at least: One thread may call give(), one thread may call take()
  • Class Summary
    Class Description
    ThreadSafeFixedSizePool<T>
    A pool that holds at least size items, creates size items in the pool immediately, blocks (busily) whenever the pool overflows or underflows, optionally clears the items given to it, and IS thread-safe
    ThreadSafeLenientFixedSizePool<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
  • Exception Summary
    Exception Description
    PoolEmptyException
    Indicates that a Pool is empty and no more items can be Pool.take()n.
    PoolFullException
    Indicates that a Pool is full and can't be given more items.