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 String ROLE
           
 
Method Summary
 ThreadPool getDefaultThreadPool()
          Retrieve the default thread pool.
 ThreadPool getThreadPool(String name)
          Retrieve a thread pool by name.
 

Field Detail

ROLE

static final String ROLE
Method Detail

getThreadPool

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

ThreadPool getDefaultThreadPool()
Retrieve the default thread pool.

Returns:
the thread pool


Copyright © 2001-2012 The Apache Software Foundation. All Rights Reserved.