Package io.deephaven.chunk.util.pools
Class BooleanChunkSoftPool
java.lang.Object
io.deephaven.chunk.util.pools.BooleanChunkSoftPool
- All Implemented Interfaces:
BooleanChunkPool
BooleanChunkPool
implementation that pools chunks of booleans in a data structure that only enforces soft
reachability.-
Method Summary
Modifier and TypeMethodDescription<ATTR extends Any>
ResettableBooleanChunk<ATTR>Take aResettableBooleanChunk
.<ATTR extends Any>
ResettableWritableBooleanChunk<ATTR>Take aResettableWritableBooleanChunk
.<ATTR extends Any>
WritableBooleanChunk<ATTR>takeWritableBooleanChunk
(int capacity) Take aWritableBooleanChunk
of at least the specifiedcapacity
.
-
Method Details
-
asChunkPool
- Specified by:
asChunkPool
in interfaceBooleanChunkPool
- Returns:
- This BooleanChunkPool as a
ChunkPool
. This is useful for passing this pool to methods that expect aChunkPool
but do not need to know the specific type.
-
takeWritableBooleanChunk
Description copied from interface:BooleanChunkPool
Take aWritableBooleanChunk
of at least the specifiedcapacity
. The result belongs to the caller untilclosed
.- Specified by:
takeWritableBooleanChunk
in interfaceBooleanChunkPool
- Parameters:
capacity
- The minimum capacity for the result- Returns:
- A
WritableBooleanChunk
of at least the specifiedcapacity
that belongs to the caller untilclosed
-
takeResettableBooleanChunk
Description copied from interface:BooleanChunkPool
Take aResettableBooleanChunk
. The result belongs to the caller untilclosed
.- Specified by:
takeResettableBooleanChunk
in interfaceBooleanChunkPool
- Returns:
- A
ResettableBooleanChunk
that belongs to the caller untilclosed
-
takeResettableWritableBooleanChunk
Description copied from interface:BooleanChunkPool
Take aResettableWritableBooleanChunk
. The result belongs to the caller untilclosed
.- Specified by:
takeResettableWritableBooleanChunk
in interfaceBooleanChunkPool
- Returns:
- A
ResettableWritableBooleanChunk
that belongs to the caller untilclosed
-