public final class WeakCollectionCleaner extends Thread
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.Thread.State, Thread.UncaughtExceptionHandler
Modifier and Type | Field and Description |
---|---|
static WeakCollectionCleaner |
DEFAULT
The default thread.
|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Modifier and Type | Method and Description |
---|---|
void |
exit()
Stops the cleaner thread.
|
ReferenceQueue<Object> |
getReferenceQueue() |
void |
run()
Loop to be run during the virtual machine lifetime.
|
activeCount, checkAccess, clone, 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
public static final WeakCollectionCleaner DEFAULT
public ReferenceQueue<Object> getReferenceQueue()
public void run()
public void exit()
Copyright © 1996–2019 Geotools. All rights reserved.