public interface LazyCleaner
| Modifier and Type | Interface and Description |
|---|---|
static interface |
LazyCleaner.Cleanable<T extends java.lang.Throwable>
Cleanable interface for objects that can be manually cleaned.
|
static interface |
LazyCleaner.CleaningAction<T extends java.lang.Throwable>
CleaningAction interface for cleanup actions that are notified whether cleanup
occurred due to a leak (automatic) or manual cleanup.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends java.lang.Throwable> |
register(java.lang.Object obj,
LazyCleaner.CleaningAction<T> action)
Registers an object for cleanup when it becomes phantom reachable.
|
<T extends java.lang.Throwable> LazyCleaner.Cleanable<T> register(java.lang.Object obj, LazyCleaner.CleaningAction<T> action)
T - the type of exception that can be thrown during cleanupobj - the object to monitor for cleanup (should not be the same as action)action - the action to perform when the object becomes unreachableCopyright © 2026 PostgreSQL Global Development Group. All rights reserved.