See: Description
| Interface | Description |
|---|---|
| Memory |
The Memory interface defines get and put methods for all Java primitive and
primitive array types to/from a byte offset that is relative to the base address of some
object or region of native memory defined by the implementing class.
|
| MemoryRequest |
The MemoryRequest is a callback interface that is accessible from the Memory interface and
provides a means for a Memory object to request more memory from the calling class and to
free Memory that is no longer needed.
|
| Class | Description |
|---|---|
| AllocMemory |
The AllocMemory class is a subclass of NativeMemory and is used to allocate direct, off-heap
native memory, which is then accessed by the NativeMemory methods.
|
| MemoryMappedFile |
MemoryMappedFile class extends NativeMemory and is used to memory map files (including those >
2GB) off heap.
|
| MemoryRegion |
The MemoryRegion class implements the Memory interface and provides a means of
hierarchically partitioning a large block of native memory into
smaller regions of memory, each with their own capacity and offsets.
|
| MemoryRegionR |
Read-only version of MemoryRegion
|
| MemoryUtil |
Useful utilities that work with Memory.
|
| NativeMemory |
The NativeMemory class implements the Memory interface and is used to access Java byte arrays,
long arrays and ByteBuffers by presenting them as arguments to the constructors of this class.
|
| UnsafeUtil |
Provides access to the sun.misc.Unsafe class and its key static fields.
|
| Exception | Description |
|---|---|
| ReadOnlyMemoryException |
The exception thrown by the write methods of the read-only classes.
|
The memory package contains classes that extend the Java Unsafe class and provide direct primitive and array access to off-heap memory as well as compatible views into heap-based arrays and the Java ByteBuffer class. This package is general purpose, has no external dependencies and can be used in any application that needs to manage data structures outside the Java heap.
This package requires JDK8 or higher.
Copyright © 2015–2016 Yahoo! Inc.. All rights reserved.