uPortal 2.4.1
API Documentation

org.jasig.portal.utils
Class ThreadPoolWorker

java.lang.Object
  extended byjava.lang.Thread
      extended byorg.jasig.portal.utils.ThreadPoolWorker
All Implemented Interfaces:
java.lang.Runnable

public class ThreadPoolWorker
extends java.lang.Thread

An internal worker thread for the ThreadPool

Author:
Peter Kharchenko pkharchenko@interactivebusiness.com

Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ThreadPoolWorker(ThreadPool pool)
           
 
Method Summary
 boolean completeRequest()
           
static java.lang.String getNextWorkerID()
           
 void killRequest()
           
 ThreadPoolReceipt process(java.lang.Runnable target)
           
 void run()
           
 void stopRequest()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ThreadPoolWorker

public ThreadPoolWorker(ThreadPool pool)
Method Detail

run

public void run()

getNextWorkerID

public static java.lang.String getNextWorkerID()

process

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

completeRequest

public boolean completeRequest()

stopRequest

public void stopRequest()

killRequest

public void killRequest()

uPortal 2.4.1
API Documentation