org.apache.avalon.cornerstone.services.threads
Interface ThreadManager
public interface ThreadManager
Manage a set of ThreadPools.
- Version:
- $Revision: 1.1 $ $Date: 2004/03/15 13:06:46 $
- Author:
- Avalon Development Team
Field Summary |
static java.lang.String |
ROLE
|
Method Summary |
org.apache.excalibur.thread.ThreadPool |
getDefaultThreadPool()
Retrieve the default thread pool. |
org.apache.excalibur.thread.ThreadPool |
getThreadPool(java.lang.String name)
Retrieve a thread pool by name. |
ROLE
static final java.lang.String ROLE
getThreadPool
org.apache.excalibur.thread.ThreadPool getThreadPool(java.lang.String name)
throws java.lang.IllegalArgumentException
- Retrieve a thread pool by name.
- Parameters:
name
- the name of thread pool
- Returns:
- the threadpool
- Throws:
java.lang.IllegalArgumentException
- if the name of thread pool is
invalid or named pool does not exist
getDefaultThreadPool
org.apache.excalibur.thread.ThreadPool getDefaultThreadPool()
- Retrieve the default thread pool.
- Returns:
- the thread pool