| 
 | Jadex 0.941 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjadex.util.concurrent.ThreadPool
A thread pool manages pool and saves resources and time by precreating and reusing pool.
| Nested Class Summary | |
|  class | ThreadPool.ServiceThreadA service thread executes tasks. | 
| Method Summary | |
|  void | dispose()Shutdown the task pool | 
|  void | execute(Runnable task)Execute a task in its own thread. | 
| static ThreadPool | getInstance()Get a thread pool singleton. | 
|  ThreadPool.ServiceThread | getThread(Runnable task)Get a thread for a task. | 
| static void | main(String[] args)Main for testing. | 
|  void | run()The observer thread. | 
|  String | toString()Get the string representation. | 
| Methods inherited from class java.lang.Object | 
| equals, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Method Detail | 
public static ThreadPool getInstance()
public void execute(Runnable task)
task - The task to execute.public void dispose()
public static void main(String[] args)
args - The arguments.public String toString()
public ThreadPool.ServiceThread getThread(Runnable task)
public void run()
run in interface Runnable| 
 | Jadex 0.941 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright (C) 2002-2005 Lars Braubach, Alexander Pokahr, Andrzej Walczak - University of Hamburg. Use is subject to license terms.