Package io.deephaven.chunk.util.pools
Interface ObjectChunkPool
- All Known Implementing Classes:
MultiChunkPool,ObjectChunkSoftPool
public interface ObjectChunkPool
-
Method Summary
Modifier and TypeMethodDescription<TYPE,ATTR extends Any>
ResettableObjectChunk<TYPE,ATTR> Take aResettableObjectChunkof at least the specifiedcapacity.<TYPE,ATTR extends Any>
ResettableWritableObjectChunk<TYPE,ATTR> Take aResettableWritableObjectChunkof at least the specifiedcapacity.<TYPE,ATTR extends Any>
WritableObjectChunk<TYPE,ATTR> takeWritableObjectChunk(int capacity) Take aWritableObjectChunkof at least the specifiedcapacity.
-
Method Details
-
asChunkPool
ChunkPool asChunkPool() -
takeWritableObjectChunk
Take aWritableObjectChunkof at least the specifiedcapacity. The result belongs to the caller untilclosed.- Parameters:
capacity- The minimum capacity for the result- Returns:
- A
WritableObjectChunkof at least the specifiedcapacitythat belongs to the caller untilclosed
-
takeResettableObjectChunk
Take aResettableObjectChunkof at least the specifiedcapacity. The result belongs to the caller untilclosed.- Returns:
- A
ResettableObjectChunkof at least the specifiedcapacitythat belongs to the caller untilclosed
-
takeResettableWritableObjectChunk
<TYPE,ATTR extends Any> ResettableWritableObjectChunk<TYPE,ATTR> takeResettableWritableObjectChunk()Take aResettableWritableObjectChunkof at least the specifiedcapacity. The result belongs to the caller untilclosed.- Returns:
- A
ResettableWritableObjectChunkof at least the specifiedcapacitythat belongs to the caller untilclosed
-