| |
|
| java.lang.Object java.lang.ThreadGroup org.jasig.portal.utils.ThreadPool
addNewWorker | protected void addNewWorker()(Code) | | Adds a new worker. Doesn't check anything, just adds.
|
addWorker | protected synchronized void addWorker()(Code) | | Grow the size of the worker pool.
This will "attempt" to add another worker, but
unlike addNewWorker(), the resource limits are checked.
|
adjustSize | protected synchronized void adjustSize(int newSize)(Code) | | Adjust the size of the worker pool.
Adjustment is done by growing/shrinking the idle worker pool.
Active workers will not be affected by this
|
clear | public void clear()(Code) | | Clears all of the workers.
|
clearIdle | public void clearIdle()(Code) | | Clears all of the idle workers
|
notifyWorkerFinished | protected void notifyWorkerFinished(ThreadPoolWorker pw)(Code) | | Notifies the pool that a certain worker has finished.
|
notifyWorkerRestart | protected void notifyWorkerRestart(ThreadPoolWorker pw)(Code) | | Notifies the pool that a certain worker is done and
wants to have a replacement started.
|
releaseWorker | protected boolean releaseWorker(ThreadPoolWorker worker)(Code) | | Signals the worker that it should quite as soon
as a job (if any) is complete
false if the worker has already been released |
stopWorker | protected void stopWorker(ThreadPoolWorker worker)(Code) | | Signals the worker that it try to interrupt
the current job and quit.
|
uncaughtException | public void uncaughtException(Thread t, Throwable e)(Code) | | Handle the case when some worker crashes
|
|
|
|