com.google.common.base Interface FinalizableReference
public interface FinalizableReference
由有代码需要其参照类的垃圾回收之后执行的代码的引用的类实现。
方法类型 | 方法 |
---|---|
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. |
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.