Package io.deephaven.base.pool
Interface Pool.Factory
public static interface Pool.Factory
-
Method Summary
-
Method Details
-
create
Creates a new pool.- Parameters:
nSize
- A hint of the maximum number of items expected to be taken from the pool at once. The behavior when more items are taken depends on the pool. The pool may preallocate this many items. When the maximum can't be given, use 0.itemFactory
- Creates new items. May benull
if items will begive
n rather than created.clearingProcedure
- Called on each item given to the pool to clear the fields of the item. May benull
.
-