com.notuvy.thread
Class ThreadControlGroup
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ThreadControlGroup
public ThreadControlGroup()
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.