Jadex 0.941

jadex.util.concurrent
Class ThreadPool.ServiceThread

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

public class ThreadPool.ServiceThread
extends Thread

A service thread executes tasks.


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, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, 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.


getTask

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

Returns:
The runnable.

getTaskExecutionTime

public long getTaskExecutionTime()
Get the task execution time.


Jadex 0.941

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-2005 Lars Braubach, Alexander Pokahr, Andrzej Walczak - University of Hamburg. Use is subject to license terms.