public static class ThreadPool.PoolThread extends Thread implements Pool.PondLife
Thread.State, Thread.UncaughtExceptionHandler
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
PoolThread() |
Modifier and Type | Method and Description |
---|---|
void |
enterPool(Pool pool,
int id) |
int |
getID() |
void |
leavePool() |
void |
poolClosing() |
void |
run()
ThreadPool run.
|
void |
run(ThreadPool pool,
Object job) |
String |
toString() |
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, yield
public void enterPool(Pool pool, int id)
enterPool
in interface Pool.PondLife
public int getID()
getID
in interface Pool.PondLife
public void poolClosing()
poolClosing
in interface Pool.PondLife
public void leavePool()
leavePool
in interface Pool.PondLife
public void run(ThreadPool pool, Object job)
public void run()
Copyright © 2016. All Rights Reserved.