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 aWritableByteChunkof at least the specifiedcapacity.
-
Method Details
-
asChunkPool
ChunkPool asChunkPool() -
takeWritableByteChunk
Take aWritableByteChunkof at least the specifiedcapacity. The result belongs to the caller untilclosed.- Parameters:
capacity- The minimum capacity for the result- Returns:
- A
WritableByteChunkof at least the specifiedcapacitythat belongs to the caller untilclosed
-
takeResettableByteChunk
Take aResettableByteChunk. The result belongs to the caller untilclosed.- Returns:
- A
ResettableByteChunkthat belongs to the caller untilclosed
-
takeResettableWritableByteChunk
Take aResettableWritableByteChunk. The result belongs to the caller untilclosed.- Returns:
- A
ResettableWritableByteChunkthat belongs to the caller untilclosed
-