public class UnsafeMemoryProvider extends Object implements DirectMemoryProvider
Supports memory reuse semantics.
| Constructor and Description |
|---|
UnsafeMemoryProvider(IgniteLogger log) |
| Modifier and Type | Method and Description |
|---|---|
void |
initialize(long[] sizes) |
DirectMemoryRegion |
nextRegion()
Attempts to allocate next memory region.
|
void |
shutdown(boolean deallocate)
Shuts down the provider.
|
public UnsafeMemoryProvider(IgniteLogger log)
log - Ignite logger to use.public void initialize(long[] sizes)
initialize in interface DirectMemoryProvidersizes - Initializes provider with the chunk sizes.public void shutdown(boolean deallocate)
shutdown in interface DirectMemoryProviderdeallocate - True to deallocate memory, false to allow memory reuse.public DirectMemoryRegion nextRegion()
null if no more regions are available.nextRegion in interface DirectMemoryProvider
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.10.0 Release Date : March 10 2021