Home » geronimo-2.2-source-release » org.apache.geronimo.concurrent.harmony » [javadoc | source]
org.apache.geronimo.concurrent.harmony
class: ThreadPoolExecutor.Worker [javadoc | source]
java.lang.Object
   org.apache.geronimo.concurrent.harmony.ThreadPoolExecutor$Worker

All Implemented Interfaces:
    Runnable

Worker threads
Field Summary
volatile  long completedTasks    Per thread completed task counter; accumulated into completedTaskCount upon termination. 
 Thread thread    Thread this worker is running in. Acts as a final field, but cannot be set until thread is created. 
Constructor:
 Worker(Runnable firstTask) 
Method from org.apache.geronimo.concurrent.harmony.ThreadPoolExecutor$Worker Summary:
interruptIfIdle,   interruptNow,   isActive,   run
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.geronimo.concurrent.harmony.ThreadPoolExecutor$Worker Detail:
  void interruptIfIdle() 
    Interrupt thread if not running a task
  void interruptNow() 
    Cause thread to die even if running a task.
 boolean isActive() 
 public  void run() 
    Main run loop