com.ibm.xcap.client
Class WorkerThread

java.lang.Object
  extended by java.lang.Thread
      extended by com.ibm.xcap.client.WorkerThread
All Implemented Interfaces:
java.lang.Runnable

public class WorkerThread
extends java.lang.Thread


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
static java.lang.String CLASSNAME
          Classname
protected  boolean destroy
          Boolean that determines if a thread should remain alive *
static java.util.logging.Logger LOGGER
          Logger for this class
protected  java.lang.Runnable task
          Runnable *
protected  WorkerThreadPool threadPool
          Reference to the threadPool this thread blongs to *
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
WorkerThread()
           
 
Method Summary
 void kill()
           
 void run()
           
 void setTask(java.lang.Runnable task)
           
 void setThreadPool(WorkerThreadPool threadPool)
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CLASSNAME

public static final java.lang.String CLASSNAME
Classname


LOGGER

public static final java.util.logging.Logger LOGGER
Logger for this class


destroy

protected boolean destroy
Boolean that determines if a thread should remain alive *


task

protected java.lang.Runnable task
Runnable *


threadPool

protected WorkerThreadPool threadPool
Reference to the threadPool this thread blongs to *

Constructor Detail

WorkerThread

public WorkerThread()
Method Detail

setThreadPool

public void setThreadPool(WorkerThreadPool threadPool)

setTask

public void setTask(java.lang.Runnable task)

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

kill

public void kill()