Class PlatformMemoryPool
- java.lang.Object
-
- org.apache.ignite.internal.processors.platform.memory.PlatformMemoryPool
-
public class PlatformMemoryPool extends Object
Memory pool associated with a thread.
-
-
Constructor Summary
Constructors Constructor Description PlatformMemoryPool()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PlatformMemoryallocate(int cap)Allocate memory chunk, optionally pooling it.PlatformMemoryget(long memPtr)Get pooled memory chunk.
-
-
-
Method Detail
-
allocate
public PlatformMemory allocate(int cap)
Allocate memory chunk, optionally pooling it.- Parameters:
cap- Minimum capacity.- Returns:
- Memory chunk.
-
get
public PlatformMemory get(long memPtr)
Get pooled memory chunk.- Parameters:
memPtr- Memory pointer.- Returns:
- Memory chunk.
-
-