uPortal 2.4.1
API Documentation

org.jasig.portal.utils.threading
Class Worker

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

public final class Worker
extends java.lang.Thread

A ThreadPool worker thread.

Version:
$Revision: 1.8 $
Author:
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Worker(ThreadPool pool, Queue work)
          Worker Constructor
 
Method Summary
 void run()
          The work of a worker thread
 void stopWorker()
          Stops a worker
 
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

Worker

public Worker(ThreadPool pool,
              Queue work)
Worker Constructor

Parameters:
pool - the ThreadPool that this worker belongs to
work - the queue of work for this thread
Method Detail

run

public void run()
The work of a worker thread


stopWorker

public void stopWorker()
Stops a worker


uPortal 2.4.1
API Documentation