All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class JavaGroups.ReusableThread

java.lang.Object
   |
   +----java.lang.Thread
           |
           +----JavaGroups.ReusableThread

public class ReusableThread
extends Thread
Reusable thread class. Instead of creating a new thread per task, this instance can be reused to run different tasks in turn. This is done by looping and assigning the Runnable target objects whose run method is then called.


Constructor Index

 o ReusableThread()

Method Index

 o AssignTask(Runnable)
 o Available()
 o Done()
 o finalize()
 o main(String[])
 o run()
 o SetAvailable(boolean)
 o Start()
 o Stop()
 o WaitUntilDone()

Constructors

 o ReusableThread
 public ReusableThread()

Methods

 o Start
 public void Start()
 o Stop
 public void Stop()
 o finalize
 public void finalize()
Overrides:
finalize in class Object
 o AssignTask
 public void AssignTask(Runnable target)
 o run
 public void run()
Overrides:
run in class Thread
 o SetAvailable
 public void SetAvailable(boolean a)
 o Available
 public boolean Available()
 o Done
 public boolean Done()
 o WaitUntilDone
 public void WaitUntilDone()
 o main
 public static void main(String args[])

All Packages  Class Hierarchy  This Package  Previous  Next  Index