Package io.deephaven.chunk.util.pools
Interface ChunkPool
public interface ChunkPool
Interface for pools of
Chunks.-
Method Summary
Modifier and TypeMethodDescription<ATTR extends Any>
ResettableReadOnlyChunk<ATTR> Take aResettableReadOnlyChunk.<ATTR extends Any>
ResettableWritableChunk<ATTR> Take aResettableWritableChunk.<ATTR extends Any>
WritableChunk<ATTR> takeWritableChunk(int capacity) Take aWritableChunkof at least the specifiedcapacity.
-
Method Details
-
takeWritableChunk
Take aWritableChunkof at least the specifiedcapacity. The result belongs to the caller untilclosed.- Parameters:
capacity- The minimum capacity for the result- Returns:
- A
WritableChunkof at least the specifiedcapacitythat belongs to the caller untilclosed
-
takeResettableChunk
Take aResettableReadOnlyChunk. The result belongs to the caller untilclosed.- Returns:
- A
ResettableReadOnlyChunkthat belongs to the caller untilclosed
-
takeResettableWritableChunk
Take aResettableWritableChunk. The result belongs to the caller untilclosed.- Returns:
- A
ResettableWritableChunkthat belongs to the caller untilclosed
-