summary:"This interface represents managing references to <xref uid=\"java.lang.Object\" data-throw-if-not-resolved=\"false\" data-raw-source=\"Objects\"></xref> and providing the ability to run a cleaning operation once the object is no longer able to be reference."
summary:"The global instance of <xref uid=\"com.azure.core.util.ReferenceManager\" data-throw-if-not-resolved=\"false\" data-raw-source=\"ReferenceManager\"></xref> that should be used to maintain object references."
syntax:"public static final ReferenceManager INSTANCE"
desc:"The global instance of <xref uid=\"com.azure.core.util.ReferenceManager\" data-throw-if-not-resolved=\"false\" data-raw-source=\"ReferenceManager\"></xref> that should be used to maintain object references."
desc:"Registers the `object` and the cleaning action to run once the object becomes phantom reachable.\n\nThe `cleanupAction` cannot have a reference to the `object`, otherwise the object will never be able to become phantom reachable.\n\nExceptions thrown by `cleanupAction` are ignored."
desc:"This interface represents managing references to <xref uid=\"java.lang.Object\" data-throw-if-not-resolved=\"false\" data-raw-source=\"Objects\"></xref> and providing the ability to run a cleaning operation once the object is no longer able to be reference.\n\nExpected usage of this is through <xref uid=\"com.azure.core.util.ReferenceManager.INSTANCE\" data-throw-if-not-resolved=\"false\" data-raw-source=\"ReferenceManager#INSTANCE\"></xref>."