Package io.deephaven.chunk.util.pools
Class CharChunkSoftPool
java.lang.Object
io.deephaven.chunk.util.pools.CharChunkSoftPool
- All Implemented Interfaces:
CharChunkPool
CharChunkPool implementation that pools chunks of chars in a data structure that only enforces soft
reachability.-
Method Summary
Modifier and TypeMethodDescription<ATTR extends Any>
ResettableCharChunk<ATTR>Take aResettableCharChunk.<ATTR extends Any>
ResettableWritableCharChunk<ATTR>Take aResettableWritableCharChunk.<ATTR extends Any>
WritableCharChunk<ATTR>takeWritableCharChunk(int capacity) Take aWritableCharChunkof at least the specifiedcapacity.
-
Method Details
-
asChunkPool
- Specified by:
asChunkPoolin interfaceCharChunkPool- Returns:
- This CharChunkPool as a
ChunkPool. This is useful for passing this pool to methods that expect aChunkPoolbut do not need to know the specific type.
-
takeWritableCharChunk
Description copied from interface:CharChunkPoolTake aWritableCharChunkof at least the specifiedcapacity. The result belongs to the caller untilclosed.- Specified by:
takeWritableCharChunkin interfaceCharChunkPool- Parameters:
capacity- The minimum capacity for the result- Returns:
- A
WritableCharChunkof at least the specifiedcapacitythat belongs to the caller untilclosed
-
takeResettableCharChunk
Description copied from interface:CharChunkPoolTake aResettableCharChunk. The result belongs to the caller untilclosed.- Specified by:
takeResettableCharChunkin interfaceCharChunkPool- Returns:
- A
ResettableCharChunkthat belongs to the caller untilclosed
-
takeResettableWritableCharChunk
Description copied from interface:CharChunkPoolTake aResettableWritableCharChunk. The result belongs to the caller untilclosed.- Specified by:
takeResettableWritableCharChunkin interfaceCharChunkPool- Returns:
- A
ResettableWritableCharChunkthat belongs to the caller untilclosed
-