org.apache.avalon.excalibur.thread
Interface ThreadPool
- All Known Implementing Classes:
- DefaultThreadPool, ResourceLimitingThreadPool
- public interface ThreadPool
This class is the public frontend for the thread pool code.
- Author:
- Peter Donald
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(org.apache.avalon.framework.activity.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
Copyright © 2001 Apache Jakarta Project. All Rights Reserved.