Package io.deephaven.base.pool
package io.deephaven.base.pool
-
ClassDescriptionPool<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 bePool.take()
n.A pool that holds at leastsize
items, createssize
items in the pool immediately, blocks (busily) whenever the pool overflows or underflows, optionally clears the items given to it, and IS thread-safeA pool that holds at leastsize
items, createssize
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