com.ten60.netkernel.scheduler
Class WorkerThread
java.lang.Object
java.lang.Thread
com.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
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 |
WorkerThread
public WorkerThread(WorkerThreadPool aParent,
ThreadGroup aThreadGroup)
- Construct a new QProcessorThread.
- Parameters:
aParent
- The owning QProcessorThreadGroup.
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.
Copyright © 2002-2004 1060 Research Ltd. All Rights Reserved.