public class ReferenceManager
extends java.lang.Object
Constructor and Description |
---|
ReferenceManager(java.lang.ref.ReferenceQueue queue) |
Modifier and Type | Method and Description |
---|---|
void |
afterReferenceCreation(Reference r) |
static ReferenceManager |
createCallBackedManager(java.lang.ref.ReferenceQueue queue) |
static ReferenceManager |
createIdlingManager(java.lang.ref.ReferenceQueue queue) |
static ReferenceManager |
createThreadedManager(java.lang.ref.ReferenceQueue queue) |
static ReferenceManager |
createThresholdedIdlingManager(java.lang.ref.ReferenceQueue queue,
ReferenceManager callback,
int threshold) |
static ReferenceBundle |
getDefaultSoftBundle()
Deprecated.
|
static ReferenceBundle |
getDefaultWeakBundle()
Deprecated.
|
protected java.lang.ref.ReferenceQueue |
getReferenceQueue() |
void |
removeStallEntries() |
void |
stopThread() |
java.lang.String |
toString() |
public static ReferenceManager createThreadedManager(java.lang.ref.ReferenceQueue queue)
public static ReferenceManager createIdlingManager(java.lang.ref.ReferenceQueue queue)
public static ReferenceManager createCallBackedManager(java.lang.ref.ReferenceQueue queue)
public static ReferenceManager createThresholdedIdlingManager(java.lang.ref.ReferenceQueue queue, ReferenceManager callback, int threshold)
protected java.lang.ref.ReferenceQueue getReferenceQueue()
public void afterReferenceCreation(Reference r)
public void removeStallEntries()
public void stopThread()
public java.lang.String toString()
toString
in class java.lang.Object
@Deprecated public static ReferenceBundle getDefaultSoftBundle()
ReferenceBundle.getSoftBundle()
@Deprecated public static ReferenceBundle getDefaultWeakBundle()
ReferenceBundle.getWeakBundle()