Package io.deephaven.chunk.util.pools
Interface ByteChunkPool
- All Known Implementing Classes:
ByteChunkSoftPool
,MultiChunkPool
public interface ByteChunkPool
-
Method Summary
Modifier and TypeMethodDescription<ATTR extends Any>
ResettableByteChunk<ATTR>Take aResettableByteChunk
.<ATTR extends Any>
ResettableWritableByteChunk<ATTR>Take aResettableWritableByteChunk
.<ATTR extends Any>
WritableByteChunk<ATTR>takeWritableByteChunk
(int capacity) Take aWritableByteChunk
of at least the specifiedcapacity
.
-
Method Details
-
asChunkPool
ChunkPool asChunkPool() -
takeWritableByteChunk
Take aWritableByteChunk
of at least the specifiedcapacity
. The result belongs to the caller untilclosed
.- Parameters:
capacity
- The minimum capacity for the result- Returns:
- A
WritableByteChunk
of at least the specifiedcapacity
that belongs to the caller untilclosed
-
takeResettableByteChunk
Take aResettableByteChunk
. The result belongs to the caller untilclosed
.- Returns:
- A
ResettableByteChunk
that belongs to the caller untilclosed
-
takeResettableWritableByteChunk
Take aResettableWritableByteChunk
. The result belongs to the caller untilclosed
.- Returns:
- A
ResettableWritableByteChunk
that belongs to the caller untilclosed
-