|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
org.geotools.util.WeakCollectionCleaner
public final class WeakCollectionCleaner
A thread invoking Reference.clear()
on each enqueded reference.
This is usefull only if Reference
subclasses has overridden
their clear()
method in order to perform some cleaning.
This thread is used by WeakHashSet
and WeakValueHashMap
,
which remove their entry from the collection when Reference.clear()
is invoked.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
static WeakCollectionCleaner |
DEFAULT
The default thread. |
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Method Summary | |
---|---|
void |
exit()
Stops the cleaner thread. |
java.lang.ref.ReferenceQueue<java.lang.Object> |
getReferenceQueue()
|
void |
run()
Loop to be run during the virtual machine lifetime. |
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final WeakCollectionCleaner DEFAULT
Method Detail |
---|
public java.lang.ref.ReferenceQueue<java.lang.Object> getReferenceQueue()
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public void exit()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |