org.iids.aos.util
Class ThreadPool

java.lang.Object
  extended by org.iids.aos.util.ThreadPool

public class ThreadPool
extends java.lang.Object

Class ThreadPool is a thread-safe pool of threads. Threads can be reused for running Runnables. There is no maximum for the number of threads in the pool. New threads will be created on demand. However, when Threads are not used for a certain period of time, they will be removed, to keep the amount of resources to a minimum.

Author:
Michel Oey

Nested Class Summary
static class ThreadPool.PoolThread
           
 
Method Summary
protected  void finalize()
           
static ThreadPool.PoolThread getThread()
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

finalize

protected void finalize()
Overrides:
finalize in class java.lang.Object

getThread

public static ThreadPool.PoolThread getThread()


Copyright © 2003, 2004 IIDS Group. All Rights Reserved.