|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Thread
de.intarsys.tools.resourcetracker.ResourceFinalizer
public class ResourceFinalizer
A thread for monitoring a reference queue.
This monitor is decoupled from the ResourceTracker instance to allow
for heterogenous resources to be tracked in a single thread.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary |
|---|
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
ResourceFinalizer()
|
|
| Method Summary | |
|---|---|
protected void |
drainQueue()
|
protected void |
ensureStarted()
|
static ResourceFinalizer |
get()
|
java.lang.ref.ReferenceQueue |
getQueue()
|
void |
run()
|
void |
start()
|
| Methods inherited from class java.lang.Thread |
|---|
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, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ResourceFinalizer()
| Method Detail |
|---|
public static ResourceFinalizer get()
protected void drainQueue()
protected void ensureStarted()
public java.lang.ref.ReferenceQueue getQueue()
public void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic void start()
start in class java.lang.Thread
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||