Package io.trino.util
Class FinalizerService
java.lang.Object
io.trino.util.FinalizerService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFinalizer(Object referent, Runnable cleanup) When referent is freed by the garbage collector, run cleanup.voiddestroy()voidstart()
-
Constructor Details
-
FinalizerService
public FinalizerService()
-
-
Method Details
-
start
@PostConstruct public void start() -
destroy
@PreDestroy public void destroy() -
addFinalizer
When referent is freed by the garbage collector, run cleanup.Note: cleanup must not contain a reference to the referent object.
-