com.rhi.architecture.threads
Interface ThreadPool

All Known Implementing Classes:
ThreadPoolImpl

public interface ThreadPool

Interface for ThreadPool Implementations.

Version:
1.0
Author:
Chandra Ilindra

Method Summary
 void close()
          Closes the ThreadPool.
 void execute(java.lang.Runnable work)
          Executes the given work.
 void join()
          Wait for all the worker thread to finish, esentially join all threads in the pool..
 

Method Detail

execute

public void execute(java.lang.Runnable work)
Executes the given work. Typical ThreadPool implementations will use a worker thread or some sort to execute the work.

Parameters:
work - - work to be executed by thread pool.
Since:
1.0

join

public void join()
Wait for all the worker thread to finish, esentially join all threads in the pool..

Since:
1.0

close

public void close()
Closes the ThreadPool. Typically, implementing classes will terminate all the worker threads and ThreadPool becomes un-usable.

Since:
1.0


Copyright © 2002-2004 Robert Half International. All Rights Reserved.