Uses of Class
java.lang.ref.Cleaner
Package
Description
Provides reference-object classes, which support a limited degree
of interaction with the garbage collector.
Classes to support low-level and efficient foreign memory/function access, directly from Java.
-
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
. -
Uses of Cleaner in jdk.incubator.foreign
Modifier and TypeMethodDescriptionstatic ResourceScope
ResourceScope.newConfinedScope
(Cleaner cleaner) Creates a new confined scope, managed by the provided cleaner instance.static ResourceScope
ResourceScope.newSharedScope
(Cleaner cleaner) Creates a new shared scope, managed by the provided cleaner instance.