jadex.util.concurrent
Class ThreadPool.ServiceThread
java.lang.Object
   java.lang.Thread
java.lang.Thread
       jadex.util.concurrent.ThreadPool.ServiceThread
jadex.util.concurrent.ThreadPool.ServiceThread
- All Implemented Interfaces: 
- Runnable
- Enclosing class:
- ThreadPool
- public class ThreadPool.ServiceThread 
- extends Thread
A service thread executes tasks.
 
 
 
 
 
 
| 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 | 
 
 
ThreadPool.ServiceThread
public ThreadPool.ServiceThread()
- Create a new thread.
 
run
public void run()
- Dequeue an element from the queue
  and execute it.
 
- 
- Specified by:
- runin interface- Runnable
- Overrides:
- runin class- Thread
 
- 
 
getTask
public Runnable getTask()
- Get the runnable (the task).
 
- 
- Returns:
- The runnable.
 
getTaskExecutionTime
public long getTaskExecutionTime()
- Get the task execution time.
 
- 
 
Submit a bug or feature
 For further API reference and developer documentation, see the Jadex User Guide and the Jadex Tutorial. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, and working code examples. Copyright (C) 2002-2007 Lars Braubach, Alexander Pokahr - University of Hamburg. Use is subject to license terms.