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() |
static ReferenceBundle |
getDefaultWeakBundle() |
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()
public static ReferenceBundle getDefaultSoftBundle()
public static ReferenceBundle getDefaultWeakBundle()