Package io.deephaven.chunk.util.pools
Interface CharChunkPool
- All Known Implementing Classes:
CharChunkSoftPool
,MultiChunkPool
public interface CharChunkPool
-
Method Summary
Modifier and TypeMethodDescription<ATTR extends Any>
ResettableCharChunk<ATTR>Take aResettableCharChunk
.<ATTR extends Any>
ResettableWritableCharChunk<ATTR>Take aResettableWritableCharChunk
.<ATTR extends Any>
WritableCharChunk<ATTR>takeWritableCharChunk
(int capacity) Take aWritableCharChunk
of at least the specifiedcapacity
.
-
Method Details
-
asChunkPool
ChunkPool asChunkPool() -
takeWritableCharChunk
Take aWritableCharChunk
of at least the specifiedcapacity
. The result belongs to the caller untilclosed
.- Parameters:
capacity
- The minimum capacity for the result- Returns:
- A
WritableCharChunk
of at least the specifiedcapacity
that belongs to the caller untilclosed
-
takeResettableCharChunk
Take aResettableCharChunk
. The result belongs to the caller untilclosed
.- Returns:
- A
ResettableCharChunk
that belongs to the caller untilclosed
-
takeResettableWritableCharChunk
Take aResettableWritableCharChunk
. The result belongs to the caller untilclosed
.- Returns:
- A
ResettableWritableCharChunk
that belongs to the caller untilclosed
-