Interface FinalizableReference
- All Known Implementing Classes:
FinalizablePhantomReference
,FinalizableSoftReference
,FinalizableWeakReference
@DoNotMock("Use an instance of one of the Finalizable*Reference classes")
@GwtIncompatible
public interface FinalizableReference
Implemented by references that have code to run after garbage collection of their referents.
- Since:
- 2.0
- Author:
- Bob Lee
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Invoked on a background thread after the referent has been garbage collected unless security restrictions prevented starting a background thread, in which case this method is invoked when new references are created.
-
Method Details
-
finalizeReferent
void finalizeReferent()Invoked on a background thread after the referent has been garbage collected unless security restrictions prevented starting a background thread, in which case this method is invoked when new references are created.
-