java.lang.Object | ||
↳ | com.facebook.common.references.CloseableReference<T> | |
↳ | com.facebook.common.references.FinalizerCloseableReference<T> |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Returns a new CloseableReference to the same underlying SharedReference. The SharedReference ref-count is incremented.
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.
Throwable |
---|