public class

FinalizerCloseableReference

extends CloseableReference<T>
java.lang.Object
   ↳ com.facebook.common.references.CloseableReference<T>
     ↳ com.facebook.common.references.FinalizerCloseableReference<T>

Summary

[Expand]
Inherited Constants
From class com.facebook.common.references.CloseableReference
[Expand]
Inherited Fields
From class com.facebook.common.references.CloseableReference
Public Methods
CloseableReference<T> clone()
Returns a new CloseableReference to the same underlying SharedReference.
void close()
Closes this CloseableReference.
Protected Methods
void finalize()
[Expand]
Inherited Methods
From class com.facebook.common.references.CloseableReference
From class java.lang.Object
From interface java.io.Closeable
From interface java.lang.AutoCloseable

Public Methods

public CloseableReference<T> clone ()

Returns a new CloseableReference to the same underlying SharedReference. The SharedReference ref-count is incremented.

public void close ()

Closes this CloseableReference.

Decrements the reference count of the underlying object. If it is zero, the object will be released.

This method is idempotent. Calling it multiple times on the same instance has no effect.

Protected Methods

protected void finalize ()

Throws
Throwable