Class CleanupDetector

java.lang.Object
de.sandec.jmemorybuddy.CleanupDetector

public class CleanupDetector extends Object
  • Constructor Details

    • CleanupDetector

      public CleanupDetector()
  • Method Details

    • onCleanup

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

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