org.apache.avalon.cornerstone.services.threads
Interface ThreadManager

All Known Implementing Classes:
AbstractThreadManager

public interface ThreadManager

Manage a set of ThreadPools.

Version:
$Revision: 1.1.1.3 $ $Date: 2004/05/16 16:35:07 $
Author:
Avalon Development Team

Field Summary
static String ROLE
           
 
Method Summary
 org.apache.excalibur.thread.ThreadPool getDefaultThreadPool()
          Retrieve the default thread pool.
 org.apache.excalibur.thread.ThreadPool getThreadPool(String name)
          Retrieve a thread pool by name.
 

Field Detail

ROLE

public static final String ROLE
Method Detail

getThreadPool

public org.apache.excalibur.thread.ThreadPool getThreadPool(String name)
                                                     throws IllegalArgumentException
Retrieve a thread pool by name.

Parameters:
name - the name of thread pool
Returns:
the threadpool
Throws:
IllegalArgumentException - if the name of thread pool is invalid or named pool does not exist

getDefaultThreadPool

public org.apache.excalibur.thread.ThreadPool getDefaultThreadPool()
Retrieve the default thread pool.

Returns:
the thread pool


Copyright © Apache Software Foundation. All Rights Reserved.