| Modifier and Type | Class and Description |
|---|---|
| public static class | CleanupDetector.
This class can be extended to provide more meta information to the method onCleanup. |
| Modifier and Type | Field and Description |
|---|---|
| private static ReferenceQueue | |
| private static HashSet |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static void | |
| public static void | onCleanup(CleanupDetector.
This version of the method can be used to provide more information in the heap dump by extending WeakReferenceWithRunnable. |
| referenceQueue | back to summary |
|---|---|
| private static ReferenceQueue<T> referenceQueue | |
| references | back to summary |
|---|---|
| private static HashSet<CleanupDetector. | |
| CleanupDetector | back to summary |
|---|---|
| public CleanupDetector() | |
| onCleanup | back to summary |
|---|---|
| public static void onCleanup(Object obj, Runnable r) The runnable gets executed after the object has been collected by the GC. | |
| onCleanup | back to summary |
|---|---|
| public static void onCleanup(CleanupDetector. This version of the method can be used to provide more information in the heap dump by extending WeakReferenceWithRunnable. | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| r | back to summary |
|---|---|
| pack-priv Runnable r | |
| WeakReferenceWithRunnable | back to summary |
|---|---|
| pack-priv WeakReferenceWithRunnable(Object ref, ReferenceQueue<T> queue, Runnable r) | |