Keel 2.1RC2

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:

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

Keel 2.1RC2

Please see keelframework.org for information about new Keel releases.