The Meta-Environment API

toolbus.adapter
Class ToolBridge.WorkerQueue.Worker

java.lang.Object
  extended by java.lang.Thread
      extended by toolbus.adapter.ToolBridge.WorkerQueue.Worker
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
ToolBridge.WorkerQueue

private class ToolBridge.WorkerQueue.Worker
extends java.lang.Thread

The worker thread of this queue.

Author:
Arnold Lankamp

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
private  boolean running
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ToolBridge.WorkerQueue.Worker(java.lang.ThreadGroup threadGroup)
          Default constructor.
 
Method Summary
 void run()
          The main execution loop.
 void terminate()
          Terminates this worker thread after the current iteration.
 
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

running

private volatile boolean running
Constructor Detail

ToolBridge.WorkerQueue.Worker

public ToolBridge.WorkerQueue.Worker(java.lang.ThreadGroup threadGroup)
Default constructor.

Parameters:
threadGroup - The thread group to join.
Method Detail

run

public void run()
The main execution loop.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

terminate

public void terminate()
Terminates this worker thread after the current iteration.


The Meta-Environment API