org.apache.excalibur.thread
Interface ThreadPool
- All Known Implementing Classes:
- AbstractThreadPool, BasicThreadPool, DefaultThreadPool, InstrumentedResourceLimitingThreadPool, ResourceLimitingThreadPool
- public interface ThreadPool
This class is the public frontend for the thread pool code.
- Author:
execute
public ThreadControl execute(java.lang.Runnable work)
-
Run work in separate thread. Return a valid ThreadControl to control work thread.
-
- Parameters:
work - the work to be executed.
- Returns:
- the ThreadControl
execute
public ThreadControl execute(Executable work)
-
Run work in separate thread. Return a valid ThreadControl to control work thread.
-
- Parameters:
work - the work to be executed.
- Returns:
- the ThreadControl
Please see keelframework.org for information about new Keel releases.