org.xerial.util.thread
Class ThreadGroup<E extends Thread>

java.lang.Object
  extended by org.xerial.util.thread.ThreadGroup<E>

public class ThreadGroup<E extends Thread>
extends Object

Groups multiple threads as a unit

Author:
leo

Constructor Summary
ThreadGroup()
           
 
Method Summary
 void addThread(E thread)
           
 void interruptAll()
           
 void joinAll()
           
 void removeThread(E thread)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadGroup

public ThreadGroup()
Method Detail

addThread

public void addThread(E thread)

removeThread

public void removeThread(E thread)

size

public int size()

joinAll

public void joinAll()
             throws InterruptedException
Throws:
InterruptedException

interruptAll

public void interruptAll()


Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 2.1 Japan License.