net.wimpi.modbus.util
Class ThreadPool.PoolThread

java.lang.Object
  extended by java.lang.Thread
      extended by net.wimpi.modbus.util.ThreadPool.PoolThread
All Implemented Interfaces:
Runnable
Enclosing class:
ThreadPool

private class ThreadPool.PoolThread
extends Thread

Inner class implementing a thread that can be run in a ThreadPool.

Version:
1.2 (@date@)
Author:
Dieter Wimberger

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
private ThreadPool.PoolThread()
           
 
Method Summary
 void run()
          Runs the PoolThread.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, 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
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ThreadPool.PoolThread

private ThreadPool.PoolThread()
Method Detail

run

public void run()
Runs the PoolThread.

This method will infinitely loop, picking up available tasks from the LinkedQueue.

Specified by:
run in interface Runnable
Overrides:
run in class Thread


Copyright © 2012. All Rights Reserved.