Package org.apache.ignite.internal.mem
Interface DirectMemoryProvider
-
- All Known Implementing Classes:
MappedFileMemoryProvider,UnsafeMemoryProvider
public interface DirectMemoryProviderDirect memory provider interface. Not thread-safe.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidinitialize(long[] chunkSizes)DirectMemoryRegionnextRegion()Attempts to allocate next memory region.voidshutdown(boolean deallocate)Shuts down the provider.
-
-
-
Method Detail
-
initialize
void initialize(long[] chunkSizes)
- Parameters:
chunkSizes- Initializes provider with the chunk sizes.
-
shutdown
void shutdown(boolean deallocate)
Shuts down the provider.- Parameters:
deallocate-Trueto deallocate memory,falseto allow memory reuse.
-
nextRegion
DirectMemoryRegion nextRegion()
Attempts to allocate next memory region. Will returnnullif no more regions are available.- Returns:
- Next memory region.
-
-