Class PlatformMemoryManagerImpl
- java.lang.Object
-
- org.apache.ignite.internal.processors.platform.memory.PlatformMemoryManagerImpl
-
- All Implemented Interfaces:
PlatformMemoryManager
public class PlatformMemoryManagerImpl extends Object implements PlatformMemoryManager
Interop memory manager implementation.
-
-
Constructor Summary
Constructors Constructor Description PlatformMemoryManagerImpl(@Nullable PlatformCallbackGateway gate, int dfltCap)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PlatformMemoryallocate()Allocates memory.PlatformMemoryallocate(int cap)Allocates memory having at least the given capacity.PlatformMemoryget(long memPtr)Gets memory from existing pointer.
-
-
-
Constructor Detail
-
PlatformMemoryManagerImpl
public PlatformMemoryManagerImpl(@Nullable @Nullable PlatformCallbackGateway gate, int dfltCap)Constructor.- Parameters:
gate- Native gateway.dfltCap- Default memory chunk capacity.
-
-
Method Detail
-
allocate
public PlatformMemory allocate()
Allocates memory.- Specified by:
allocatein interfacePlatformMemoryManager- Returns:
- Memory.
-
allocate
public PlatformMemory allocate(int cap)
Allocates memory having at least the given capacity.- Specified by:
allocatein interfacePlatformMemoryManager- Parameters:
cap- Minimum capacity.- Returns:
- Memory.
-
get
public PlatformMemory get(long memPtr)
Gets memory from existing pointer.- Specified by:
getin interfacePlatformMemoryManager- Parameters:
memPtr- Cross-platform memory pointer.- Returns:
- Memory.
-
-