|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
org.jasig.portal.utils.ThreadPoolWorker
public class ThreadPoolWorker
An internal worker thread for the ThreadPool
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
protected ThreadPoolReceipt |
currentReceipt
|
private static org.apache.commons.logging.Log |
log
|
private static int |
nextWorkerID
|
private ThreadPool |
pool
|
protected boolean |
shouldQuit
|
protected boolean |
shouldRestart
|
private BlockingQueue |
taskQueue
|
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
ThreadPoolWorker(ThreadPool pool)
|
|
| Method Summary | |
|---|---|
boolean |
completeRequest()
|
static java.lang.String |
getNextWorkerID()
|
void |
killRequest()
|
ThreadPoolReceipt |
process(java.lang.Runnable target)
|
void |
run()
|
private void |
runIt(java.lang.Runnable r)
|
private void |
runWork()
|
void |
stopRequest()
|
| 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static final org.apache.commons.logging.Log log
private static int nextWorkerID
private ThreadPool pool
private BlockingQueue taskQueue
protected ThreadPoolReceipt currentReceipt
protected volatile boolean shouldRestart
protected volatile boolean shouldQuit
| Constructor Detail |
|---|
public ThreadPoolWorker(ThreadPool pool)
| Method Detail |
|---|
public void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic static java.lang.String getNextWorkerID()
public ThreadPoolReceipt process(java.lang.Runnable target)
throws java.lang.InterruptedException
java.lang.InterruptedException
private void runWork()
throws java.lang.RuntimeException
java.lang.RuntimeException
private void runIt(java.lang.Runnable r)
throws java.lang.RuntimeException
java.lang.RuntimeExceptionpublic boolean completeRequest()
public void stopRequest()
public void killRequest()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||