| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.concurrent.AbstractExecutorService
java.util.concurrent.ThreadPoolExecutor
com.cosylab.util.ThreadPool
public class ThreadPool
A default implementation of thread pool which delegates to  Java concurrent
 library. It creates worker threads with Thread.NORM_PRIORITY -
 2. A maximum number of workers can be active concurrently,
 specifiable by the maximumPoolSize property. If
 execute() is called and no worker is free, the call will block
 until  one of the workers terminate. Use this service to execute short
 tasks. In this way excessive construction of new thread instances can be
 prevented, speeding up the  application.
| Nested Class Summary | 
|---|
| Nested classes/interfaces inherited from class java.util.concurrent.ThreadPoolExecutor | 
|---|
| java.util.concurrent.ThreadPoolExecutor.AbortPolicy, java.util.concurrent.ThreadPoolExecutor.CallerRunsPolicy, java.util.concurrent.ThreadPoolExecutor.DiscardOldestPolicy, java.util.concurrent.ThreadPoolExecutor.DiscardPolicy | 
| Constructor Summary | |
|---|---|
| ThreadPool()Deprecated. Constructs a executor with 25 active threads. | |
| ThreadPool(int priority)Deprecated. Creates a new ThreadPool object. | |
| Method Summary | |
|---|---|
|  void | destroy()Deprecated. Releases the thread pool. | 
|  java.lang.ThreadGroup | getGroup()Deprecated. Returns the thread group to which all worker threads of this service belong. | 
|  java.lang.String | toString()Deprecated. Returns a short summary of this instance. | 
| Methods inherited from class java.util.concurrent.ThreadPoolExecutor | 
|---|
| afterExecute, allowCoreThreadTimeOut, allowsCoreThreadTimeOut, awaitTermination, beforeExecute, execute, finalize, getActiveCount, getCompletedTaskCount, getCorePoolSize, getKeepAliveTime, getLargestPoolSize, getMaximumPoolSize, getPoolSize, getQueue, getRejectedExecutionHandler, getTaskCount, getThreadFactory, isShutdown, isTerminated, isTerminating, prestartAllCoreThreads, prestartCoreThread, purge, remove, setCorePoolSize, setKeepAliveTime, setMaximumPoolSize, setRejectedExecutionHandler, setThreadFactory, shutdown, shutdownNow, terminated | 
| Methods inherited from class java.util.concurrent.AbstractExecutorService | 
|---|
| invokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submit, submit | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
public ThreadPool()
public ThreadPool(int priority)
priority - the priority of worker threads.| Method Detail | 
|---|
public java.lang.ThreadGroup getGroup()
null after this component has
 been  initialized.
public void destroy()
WAIT_FOR_SHUTDOWN the threads do not complete, the pool is
 forcibly terminated.
public java.lang.String toString()
toString in class java.lang.Object| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||