org.apache.excalibur.thread
Interface ThreadPool


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

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

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 © 2001-2010 Apache Software Foundation. All Rights Reserved.