org.starhope.appius.game
Class Charon
java.lang.Object
java.lang.Thread
org.starhope.appius.game.Charon
- All Implemented Interfaces:
- Runnable
public class Charon
- extends Thread
Charon is the reaper for zombie threads. WRITEME
- Author:
- brpocock
Method Summary |
void |
addZombie(Thread t)
Add a thread to the pool to be checked to reaping periodically |
void |
run()
This is an overriding method. |
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 |
reaperSleep
private final long reaperSleep
- The time to sleep between passes reaping the zombie threads
restlessDead
private final ConcurrentSkipListSet<Thread> restlessDead
- The set of threads who might be zombies
threadJoinTimeout
private final long threadJoinTimeout
- How long to wait for a zombie to join us before passing it over
for this reaper pass
Charon
public Charon()
addZombie
public void addZombie(Thread t)
- Add a thread to the pool to be checked to reaping periodically
- Parameters:
t
- The zombie thread to be checked for reaping
run
public void run()
- This is an overriding method.
- Specified by:
run
in interface Runnable
- Overrides:
run
in class Thread
- See Also:
Thread.run()