Class CleanupDetector


  • public class CleanupDetector
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      CleanupDetector()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void onCleanup​(CleanupDetector.PhantomReferenceWithRunnable phantomref)
      This version of the method can be used to provide more information in the heap dump by extending PhantomReferenceWithRunnable.
      static void onCleanup​(java.lang.Object obj, java.lang.Runnable r)
      The runnable gets executed after the object has been collected by the GC.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CleanupDetector

        public CleanupDetector()
    • Method Detail

      • onCleanup

        public static void onCleanup​(java.lang.Object obj,
                                     java.lang.Runnable r)
        The runnable gets executed after the object has been collected by the GC.
      • onCleanup

        public static void onCleanup​(CleanupDetector.PhantomReferenceWithRunnable phantomref)
        This version of the method can be used to provide more information in the heap dump by extending PhantomReferenceWithRunnable.