Skip navigation links
JNA API 5.12.1
com.sun.jna.internal

Class Cleaner



  • public class Cleaner
    extends java.lang.Object
    Implement ReferenceQueue based cleanup of resources associated with GCed objects. It replaces the Object#finalize based resource deallocation that is deprecated for removal from the JDK.

    This class is intented to be used only be JNA itself.

    • Method Detail

      • getCleaner

        public static Cleaner getCleaner()
      • register

        public Cleaner.Cleanable register(java.lang.Object obj,
                                          java.lang.Runnable cleanupTask)
JNA API 5.12.1

Copyright © 2007-2018 Timothy Wall. All Rights Reserved.