java.lang.Object | ||
↳ | com.facebook.common.references.CloseableReference<T> | |
↳ | com.facebook.common.references.NoOpCloseableReference<T> |
[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.
|
[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
|
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.