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 aWritableShortChunkof at least the specifiedcapacity.
-
Method Details
-
asChunkPool
ChunkPool asChunkPool() -
takeWritableShortChunk
Take aWritableShortChunkof at least the specifiedcapacity. The result belongs to the caller untilclosed.- Parameters:
capacity- The minimum capacity for the result- Returns:
- A
WritableShortChunkof at least the specifiedcapacitythat belongs to the caller untilclosed
-
takeResettableShortChunk
Take aResettableShortChunk. The result belongs to the caller untilclosed.- Returns:
- A
ResettableShortChunkthat belongs to the caller untilclosed
-
takeResettableWritableShortChunk
Take aResettableWritableShortChunk. The result belongs to the caller untilclosed.- Returns:
- A
ResettableWritableShortChunkthat belongs to the caller untilclosed
-