NetKernel APIs


com.ten60.netkernel.scheduler
Class WorkerThread

java.lang.Object
  extended byjava.lang.Thread
      extended bycom.ten60.netkernel.scheduler.WorkerThread
All Implemented Interfaces:
Runnable

public class WorkerThread
extends Thread

WorkerThread is a child of a WorkerThreadPool, it exists to provide execution threads to call its parents process() method


Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
WorkerThread(WorkerThreadPool aParent, ThreadGroup aThreadGroup)
          Construct a new QProcessorThread.
 
Method Summary
 void requestStop()
          Signals for the thread to stop once it has finished any work it is part way through.
 void run()
          The processing loop to do the threads work.
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WorkerThread

public WorkerThread(WorkerThreadPool aParent,
                    ThreadGroup aThreadGroup)
Construct a new QProcessorThread.

Parameters:
aParent - The owning QProcessorThreadGroup.
Method Detail

run

public void run()
The processing loop to do the threads work. It also checks the enabled and stop flags to control the threads operations in a safe manner.


requestStop

public void requestStop()
Signals for the thread to stop once it has finished any work it is part way through.


NetKernel APIs


Copyright © 2002-2004 1060 Research Ltd. All Rights Reserved.