net.spy.concurrent
Class WorkerThread
java.lang.Object
java.lang.Thread
net.spy.concurrent.WorkerThread
- All Implemented Interfaces:
- Runnable
public class WorkerThread
- extends Thread
Thread that will perform the work for thread pools.
| 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, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, yield |
WorkerThread
public WorkerThread(ThreadGroup tg,
Runnable r,
String name)
- Construct a named worker thread for the given runnable in the given
ThreadGroup.
WorkerThread
public WorkerThread(Runnable r,
String name)
- Construct a named worker thread for the given runnable.
setRunning
public void setRunning(Runnable to)
- Set the runnable that is being executed, or null if the run is complete.
toString
public String toString()
- Overrides:
toString in class Thread
Copyright © 1995-2007 SPY Internetworking. All Rights Reserved.