| java.lang.Object org.sape.carbon.services.threadpool.DefaultThreadPoolImpl
DefaultThreadPoolImpl | public class DefaultThreadPoolImpl implements ThreadPool,Configurable,Initializable,Startable,Suspendable,Destroyable(Code) | | This implementation of ThreadPool relys on Doug Lea's PooledExecutor thread
pool thread pool implementation. The PooledExecutor is a robust, highly
configurable thread pool. Some configurations do not guarantee task
execution, however. See
Overview of package util.concurrent for more information about the
PooledExecutor and other related classes.
Copyright 2002 Sapient
since: carbon 2.1 author: Douglas Voet, Nov 5, 2002 version: $Revision: 1.8 $($Author: dvoet $ / $Date: 2003/11/20 18:49:58 $) |
destroy | public void destroy() throws Exception(Code) | | shutsdown the pool, not waiting to complete any queued tasks
|
initialize | public void initialize(Component thisComponent) throws Exception(Code) | | initializes this.failedTasks and saves thisComponent for later
|
resume | public void resume() throws Exception(Code) | | Resumes executing queued tasks by starting a thread for each queued task
up to the max number of threads for the pool.
|
start | public void start() throws Exception(Code) | | Creates the thread pool object and configures it then creates the
configured number of threads
|
stop | public void stop() throws Exception(Code) | | Stops the thread pool and if configured, will wait for queued tasks
to execute.
|
suspend | public void suspend() throws Exception(Code) | | interrupts all the threads allowing them to terminate
|
taskFailed | public void taskFailed(TaskInfo task)(Code) | | adds a task to the failed list
|
|
|