Interface DirectMemoryProvider

All Known Implementing Classes:
UnsafeMemoryProvider

public interface DirectMemoryProvider
Direct memory provider interface.

Implementations must be thread-safe.

  • Method Details

    • allocateMemory

      DirectMemoryRegion allocateMemory(long size)
      Allocates memory region of the specified size.
      Parameters:
      size - size in bytes
      Returns:
      the allocated region, never null
      Throws:
      IgniteException - if allocation fails
    • freeMemory

      void freeMemory(DirectMemoryRegion region)
      Releases allocated memory region. The region must be allocated by this provider and must not be yet deallocated.
      Parameters:
      region - the region to release, cannot be null