Uses of Class
java.lang.ref.Cleaner
Packages that use 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
Methods in java.lang.foreign with parameters of type CleanerModifier and TypeMethodDescriptionstatic MemorySessionPREVIEWMemorySession.openConfined(Cleaner cleaner) Creates a closeable confined memory session, managed by the provided cleaner instance.static MemorySessionPREVIEWMemorySession.openShared(Cleaner cleaner) Creates a closeable shared memory session, managed by the provided cleaner instance. -
Uses of Cleaner in java.lang.ref
Methods in java.lang.ref that return CleanerModifier and TypeMethodDescriptionstatic CleanerCleaner.create()Returns a newCleaner.static CleanerCleaner.create(ThreadFactory threadFactory) Returns a newCleanerusing aThreadfrom theThreadFactory.