All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class JavaGroups.ThreadPool

java.lang.Object
   |
   +----JavaGroups.ThreadPool

public class ThreadPool
extends Object
Maintains a set of ReusableThreads. When a thread is to be returned, all existing threads are checked: when one is available, it will be returned. Otherwise, a new thread is created and returned, unless the pool limit is reached, in which case null is returned.


Constructor Index

 o ThreadPool(int)

Method Index

 o Destroy()
 o finalize()
 o GetThread()
 o main(String[])
 o toString()

Constructors

 o ThreadPool
 public ThreadPool(int max_num)

Methods

 o GetThread
 public synchronized ReusableThread GetThread()
 o Destroy
 public void Destroy()
 o finalize
 public void finalize()
Overrides:
finalize in class Object
 o toString
 public String toString()
Overrides:
toString in class Object
 o main
 public static void main(String args[])

All Packages  Class Hierarchy  This Package  Previous  Next  Index