Package io.deephaven.chunk.util.pools
Class IntChunkSoftPool
java.lang.Object
io.deephaven.chunk.util.pools.IntChunkSoftPool
- All Implemented Interfaces:
IntChunkPool
IntChunkPool implementation that pools chunks of ints in a data structure that only enforces soft
reachability.-
Method Summary
Modifier and TypeMethodDescription<ATTR extends Any>
ResettableIntChunk<ATTR>Take aResettableIntChunk.<ATTR extends Any>
ResettableWritableIntChunk<ATTR>Take aResettableWritableIntChunk.<ATTR extends Any>
WritableIntChunk<ATTR>takeWritableIntChunk(int capacity) Take aWritableIntChunkof at least the specifiedcapacity.
-
Method Details
-
asChunkPool
- Specified by:
asChunkPoolin interfaceIntChunkPool- Returns:
- This IntChunkPool as a
ChunkPool. This is useful for passing this pool to methods that expect aChunkPoolbut do not need to know the specific type.
-
takeWritableIntChunk
Description copied from interface:IntChunkPoolTake aWritableIntChunkof at least the specifiedcapacity. The result belongs to the caller untilclosed.- Specified by:
takeWritableIntChunkin interfaceIntChunkPool- Parameters:
capacity- The minimum capacity for the result- Returns:
- A
WritableIntChunkof at least the specifiedcapacitythat belongs to the caller untilclosed
-
takeResettableIntChunk
Description copied from interface:IntChunkPoolTake aResettableIntChunk. The result belongs to the caller untilclosed.- Specified by:
takeResettableIntChunkin interfaceIntChunkPool- Returns:
- A
ResettableIntChunkthat belongs to the caller untilclosed
-
takeResettableWritableIntChunk
Description copied from interface:IntChunkPoolTake aResettableWritableIntChunk. The result belongs to the caller untilclosed.- Specified by:
takeResettableWritableIntChunkin interfaceIntChunkPool- Returns:
- A
ResettableWritableIntChunkthat belongs to the caller untilclosed
-