Package com.sun.jna.internal
Class Cleaner
- java.lang.Object
-
- com.sun.jna.internal.Cleaner
-
public class Cleaner extends java.lang.ObjectImplement ReferenceQueue based cleanup of resources associated with GCed objects. It replaces theObject#finalizebased resource deallocation that is deprecated for removal from the JDK.This class is intented to be used only be JNA itself.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCleaner.Cleanable
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CleanergetCleaner()Cleaner.Cleanableregister(java.lang.Object obj, java.lang.Runnable cleanupTask)
-
-
-
Method Detail
-
getCleaner
public static Cleaner getCleaner()
-
register
public Cleaner.Cleanable register(java.lang.Object obj, java.lang.Runnable cleanupTask)
-
-