Package de.sandec.jmemorybuddy
Class CleanupDetector
- java.lang.Object
-
- de.sandec.jmemorybuddy.CleanupDetector
-
public class CleanupDetector extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCleanupDetector.PhantomReferenceWithRunnableThis class can be extended to provide more meta information to the method onCleanup.
-
Constructor Summary
Constructors Constructor Description CleanupDetector()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidonCleanup(CleanupDetector.PhantomReferenceWithRunnable phantomref)This version of the method can be used to provide more information in the heap dump by extending PhantomReferenceWithRunnable.static voidonCleanup(java.lang.Object obj, java.lang.Runnable r)The runnable gets executed after the object has been collected by the GC.
-
-
-
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.
-
-