Package io.deephaven.base.pool


package io.deephaven.base.pool
  • Class
    Description
    Pool<T>
    Provides a pool of reusable items.
     
    Must implement at least: Multiple threads may call give(), one thread may call take()
    Must implement at least: Multiple threads may call give(), multiple threads may call take()
    Must implement at least: Multiple threads may call take(), one thread may call give()
    Must implement at least: One thread may call give(), one thread may call take()
    Indicates that a Pool is empty and no more items can be Pool.take()n.
    Indicates that a Pool is full and can't be given more items.
    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
    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