Class MappedMemoryAllocator

java.lang.Object
io.atomix.utils.memory.MappedMemoryAllocator
All Implemented Interfaces:
MemoryAllocator<MappedMemory>

public class MappedMemoryAllocator extends Object implements MemoryAllocator<MappedMemory>
Mapped memory allocator.

The mapped memory allocator provides direct memory access to memory mapped from a file on disk. The mapped allocator supports allocating memory in any FileChannel.MapMode. Once the file is mapped and the memory has been allocated, the mapped allocator provides the memory address of the underlying MappedByteBuffer for access via Unsafe.

Author:
Jordan Halterman