org.apache.excalibur.thread
Interface ThreadPool

All Known Implementing Classes:
AbstractThreadPool, DefaultThreadPool, InstrumentedResourceLimitingThreadPool, ResourceLimitingThreadPool

public interface ThreadPool

This class is the public frontend for the thread pool code.

Author:
Avalon Development Team

Method Summary
 ThreadControl execute(Executable work)
          Run work in separate thread.
 ThreadControl execute(java.lang.Runnable work)
          Run work in separate thread.
 

Method Detail

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


Copyright © 1997-2005 The Apache Software Foundation. All Rights Reserved.