Package io.deephaven.chunk.util.pools
Interface ShortChunkPool
- All Known Implementing Classes:
MultiChunkPool
,ShortChunkSoftPool
public interface ShortChunkPool
-
Method Summary
Modifier and TypeMethodDescription<ATTR extends Any>
ResettableShortChunk<ATTR>Take aResettableShortChunk
.<ATTR extends Any>
ResettableWritableShortChunk<ATTR>Take aResettableWritableShortChunk
.<ATTR extends Any>
WritableShortChunk<ATTR>takeWritableShortChunk
(int capacity) Take aWritableShortChunk
of at least the specifiedcapacity
.
-
Method Details
-
asChunkPool
ChunkPool asChunkPool() -
takeWritableShortChunk
Take aWritableShortChunk
of at least the specifiedcapacity
. The result belongs to the caller untilclosed
.- Parameters:
capacity
- The minimum capacity for the result- Returns:
- A
WritableShortChunk
of at least the specifiedcapacity
that belongs to the caller untilclosed
-
takeResettableShortChunk
Take aResettableShortChunk
. The result belongs to the caller untilclosed
.- Returns:
- A
ResettableShortChunk
that belongs to the caller untilclosed
-
takeResettableWritableShortChunk
Take aResettableWritableShortChunk
. The result belongs to the caller untilclosed
.- Returns:
- A
ResettableWritableShortChunk
that belongs to the caller untilclosed
-