package

com.facebook.common.references

Classes we use for reference counting through the CloseableReference abstraction

Interfaces

CloseableReference.UnclosedReferenceListener  
ResourceReleaser<T> Interface that abstracts the action of releasing a resource. 

Classes

CloseableReference<T> A smart pointer-like class for Java. 
OOMSoftReference<T> To eliminate the possibility of some of our objects causing an OutOfMemoryError when they are not used, we reference them via SoftReferences. 
SharedReference<T> A shared-reference class somewhat similar to c++ shared_ptr. 

Exceptions

SharedReference.NullReferenceException The moral equivalent of NullPointerException for SharedReference.