Package org.codehaus.groovy.util
Class ReferenceManager
java.lang.Object
org.codehaus.groovy.util.ReferenceManager
public class ReferenceManager
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description ReferenceManager(java.lang.ref.ReferenceQueue queue)
-
Method Summary
Modifier and Type Method 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()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
ReferenceManager
public ReferenceManager(java.lang.ref.ReferenceQueue queue)
-
-
Method Details
-
createThreadedManager
-
createIdlingManager
-
createCallBackedManager
-
createThresholdedIdlingManager
public static ReferenceManager createThresholdedIdlingManager(java.lang.ref.ReferenceQueue queue, ReferenceManager callback, int threshold) -
getReferenceQueue
protected java.lang.ref.ReferenceQueue getReferenceQueue() -
afterReferenceCreation
-
removeStallEntries
public void removeStallEntries() -
stopThread
public void stopThread() -
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
getDefaultSoftBundle
Deprecated. -
getDefaultWeakBundle
Deprecated.
-
ReferenceBundle.getSoftBundle()