Interface GcFinalization.FinalizationPredicate
- Enclosing class:
GcFinalization
@DoNotMock("Implement with a lambda")
public static interface GcFinalization.FinalizationPredicate
A predicate that is expected to return true subsequent to finalization, that is, one
of the following actions taken by the garbage collector when performing a full collection in
response to
System.gc()
:
- invoking the
finalize
methods of unreachable objects - clearing weak references to unreachable referents
- enqueuing weak references to unreachable referents in their reference queue
- Since:
- 11.0
- Author:
- mike nonemacher, Martin Buchholz
-
Method Summary
-
Method Details
-
isDone
boolean isDone()
-