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