com.google.common.base
Interface FinalizableReference

All Known Implementing Classes:
FinalizablePhantomReference, FinalizableSoftReference, FinalizableWeakReference

public interface FinalizableReference

Implemented by references that have code to run after garbage collection of their referents.

Since:
2.0 (imported from Google Collections Library)
Author:
Bob Lee
See Also:
FinalizableReferenceQueue

Method Summary
 void finalizeReferent()
          Deprecated. FinalizableReferenceQueue is an unsound mechanism for cleaning up references, because (1) it's single thread can be easily overloaded, and (2) it's insistance on running a background thread is problematic in certain environments. This class is scheduled for deletion in December 2012.
 

Method Detail

finalizeReferent

@Deprecated
void finalizeReferent()
Deprecated. FinalizableReferenceQueue is an unsound mechanism for cleaning up references, because (1) it's single thread can be easily overloaded, and (2) it's insistance on running a background thread is problematic in certain environments. This class is scheduled for deletion in December 2012.

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.



Copyright © 2010-2011. All Rights Reserved.