Modifier and Type | Class and Description |
---|---|
static class |
CleanerThread.PhantomReferenceCleared
A PhantomReference subclass that automatically registers with
the cleaner ReferenceQueue.
|
static interface |
CleanerThread.ReferenceCleared
If objects registered with the reference queue associated with
this class implement this interface then the 'cleared' method
will be called when the reference is queued.
|
static class |
CleanerThread.SoftReferenceCleared
A SoftReference subclass that automatically registers with
the cleaner ReferenceQueue.
|
static class |
CleanerThread.WeakReferenceCleared
A WeakReference subclass that automatically registers with
the cleaner ReferenceQueue.
|
Thread.State, Thread.UncaughtExceptionHandler
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Modifier | Constructor and Description |
---|---|
protected |
CleanerThread() |
Modifier and Type | Method and Description |
---|---|
static ReferenceQueue |
getReferenceQueue() |
void |
run() |
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 ReferenceQueue getReferenceQueue()
Copyright © 2000–2023 Apache Software Foundation. All rights reserved.