com.notuvy.thread
Class ThreadControlGroup

java.lang.Object
  extended by com.notuvy.thread.ThreadControlGroup

public class ThreadControlGroup
extends Object

A collection of controllable workers. The main purpose is to allow an application to build a list of all background thread workers, and then perform a graceful shutdown of all when needed.

Author:
murali

Constructor Summary
ThreadControlGroup()
           
 
Method Summary
 void add(ThreadControllable pControllable)
           
 void gracefulShutdown()
          Terminate each thread then wait for each to finish any current work.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadControlGroup

public ThreadControlGroup()
Method Detail

add

public void add(ThreadControllable pControllable)

gracefulShutdown

public void gracefulShutdown()
Terminate each thread then wait for each to finish any current work.



Copyright © 2013. All Rights Reserved.