Uses of Class
java.lang.ref.Cleaner
Package
Description
Provides low-level access to memory and functions outside the Java runtime.
Provides reference-object classes, which support a limited degree
of interaction with the garbage collector.
-
Uses of Cleaner in java.lang.foreign
Modifier and TypeMethodDescriptionstatic MemorySessionPREVIEW
MemorySession.openConfined
(Cleaner cleaner) Creates a closeable confined memory session, managed by the provided cleaner instance.static MemorySessionPREVIEW
MemorySession.openShared
(Cleaner cleaner) Creates a closeable shared memory session, managed by the provided cleaner instance. -
Uses of Cleaner in java.lang.ref
Modifier and TypeMethodDescriptionstatic Cleaner
Cleaner.create()
Returns a newCleaner
.static Cleaner
Cleaner.create
(ThreadFactory threadFactory) Returns a newCleaner
using aThread
from theThreadFactory
.