Class IntrusiveChainedEntryPool<VALUE_TYPE>
java.lang.Object
com.illumon.util.datastructures.hash.IntrusiveChainedEntryPool<VALUE_TYPE>
public class IntrusiveChainedEntryPool<VALUE_TYPE> extends Object
A pool for "free" entries to be use with IntrusiveChainedHash structures, implemented as a stack using the same
adapter and intrusive fields.
Requires external synchronization of all methods for concurrent use.
-
Constructor Summary
Constructors Constructor Description IntrusiveChainedEntryPool(io.deephaven.hash.IntrusiveChainedHashAdapter<VALUE_TYPE> adapter)
Construct a new pool with the supplied adapter. -
Method Summary
Modifier and Type Method Description void
give(VALUE_TYPE entry)
Give a currently un-linked entry to the pool.VALUE_TYPE
take()
Take an entry from the pool.
-
Constructor Details
-
IntrusiveChainedEntryPool
public IntrusiveChainedEntryPool(@NotNull io.deephaven.hash.IntrusiveChainedHashAdapter<VALUE_TYPE> adapter)Construct a new pool with the supplied adapter.- Parameters:
adapter
- The adapter
-
-
Method Details