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 aResettableObjectChunk
of at least the specifiedcapacity
.<TYPE,
ATTR extends Any>
ResettableWritableObjectChunk<TYPE,ATTR> Take aResettableWritableObjectChunk
of at least the specifiedcapacity
.<TYPE,
ATTR extends Any>
WritableObjectChunk<TYPE,ATTR> takeWritableObjectChunk
(int capacity) Take aWritableObjectChunk
of at least the specifiedcapacity
.
-
Method Details
-
asChunkPool
ChunkPool asChunkPool() -
takeWritableObjectChunk
Take aWritableObjectChunk
of at least the specifiedcapacity
. The result belongs to the caller untilclosed
.- Parameters:
capacity
- The minimum capacity for the result- Returns:
- A
WritableObjectChunk
of at least the specifiedcapacity
that belongs to the caller untilclosed
-
takeResettableObjectChunk
Take aResettableObjectChunk
of at least the specifiedcapacity
. The result belongs to the caller untilclosed
.- Returns:
- A
ResettableObjectChunk
of at least the specifiedcapacity
that belongs to the caller untilclosed
-
takeResettableWritableObjectChunk
<TYPE,ATTR extends Any> ResettableWritableObjectChunk<TYPE,ATTR> takeResettableWritableObjectChunk()Take aResettableWritableObjectChunk
of at least the specifiedcapacity
. The result belongs to the caller untilclosed
.- Returns:
- A
ResettableWritableObjectChunk
of at least the specifiedcapacity
that belongs to the caller untilclosed
-