public class NativeObject extends Object
NativeObject instance. At some point, after a NativeObject is
garbage collected, a call is made to release the handle, allowing the corresponding object in the
native image heap to be collected.| Constructor and Description |
|---|
NativeObject(NativeIsolate isolate,
long objectHandle)
Creates a new
NativeObject. |
| Modifier and Type | Method and Description |
|---|---|
long |
getHandle()
Returns a handle to an object in the native image heap.
|
NativeIsolate |
getIsolate()
Returns an isolate in which an object referenced by this handle exists.
|
void |
release()
Explicitly releases object in the native image heap referenced by this handle.
|
public NativeObject(NativeIsolate isolate, long objectHandle)
NativeObject.isolate - an isolate in which an object referenced by the handle exists.objectHandle - a handle to an object in a native image heappublic final NativeIsolate getIsolate()
public final long getHandle()
public final void release()
NativeObject instance.