Jadex 0.96-beta1

jadex.util.concurrent
Class ThreadPool.ServiceThread

java.lang.Object
  extended by java.lang.Thread
      extended by jadex.util.concurrent.ThreadPool.ServiceThread
All Implemented Interfaces:
Runnable
Enclosing class:
ThreadPool

public class ThreadPool.ServiceThread
extends Thread

A service thread executes tasks.


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
ThreadPool.ServiceThread()
          Create a new thread.
 
Method Summary
 Runnable getTask()
          Get the runnable (the task).
 long getTaskExecutionTime()
          Get the task execution time.
 void run()
          Dequeue an element from the queue and execute it.
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ThreadPool.ServiceThread

public ThreadPool.ServiceThread()
Create a new thread.

Method Detail

run

public void run()
Dequeue an element from the queue and execute it.

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

getTask

public Runnable getTask()
Get the runnable (the task).

Returns:
The runnable.

getTaskExecutionTime

public long getTaskExecutionTime()
Get the task execution time.


Jadex 0.96-beta1

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.