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 TypeMethodDescriptionMemorySegment.registerCleaner(Cleaner cleaner)
Register this memory segment instance against aCleaner
object, by returning a new memory segment backed by the same underlying memory region as this segment.