uPortal 2.4.1
API Documentation

org.jasig.portal.utils
Class ThreadPool

java.lang.Object
  extended byjava.lang.ThreadGroup
      extended byorg.jasig.portal.utils.ThreadPool

public class ThreadPool
extends java.lang.ThreadGroup

A thread pool implementation with a few extra kinks, such as ThreadPoolReceipt.

Version:
$Revision: 1.10 $
Author:
Peter Kharchenko pkharchenko@interactivebusiness.com

Constructor Summary
ThreadPool(java.lang.String name, ResourceLimits rl)
           
 
Method Summary
 void clear()
          Clears all of the workers.
 void clearIdle()
          Clears all of the idle workers
 ThreadPoolReceipt execute(java.lang.Runnable target)
           
 void uncaughtException(java.lang.Thread t, java.lang.Throwable e)
          Handle the case when some worker crashes
 
Methods inherited from class java.lang.ThreadGroup
activeCount, activeGroupCount, allowThreadSuspension, checkAccess, destroy, enumerate, enumerate, enumerate, enumerate, getMaxPriority, getName, getParent, interrupt, isDaemon, isDestroyed, list, parentOf, resume, setDaemon, setMaxPriority, stop, suspend, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ThreadPool

public ThreadPool(java.lang.String name,
                  ResourceLimits rl)
Method Detail

execute

public ThreadPoolReceipt execute(java.lang.Runnable target)
                          throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

clearIdle

public void clearIdle()
Clears all of the idle workers


clear

public void clear()
Clears all of the workers.


uncaughtException

public void uncaughtException(java.lang.Thread t,
                              java.lang.Throwable e)
Handle the case when some worker crashes


uPortal 2.4.1
API Documentation