In This Topic
The following tables list the members exposed by ThreadPool.
Public Constructors
Public Fields
| Name | Description |
| CONCURRENCY_PROP_NAME | The name of the property that sets the concurrency level: jj2000.j2k.util.ThreadPool.concurrency |
Top
Public Properties
| Name | Description |
| Size | Returns the size of the pool. That is the number of threads in this pool (idle + busy). |
Top
Public Methods
| Name | Description |
| checkTargetErrors | Checks that no error or runtime exception in any target have occurred so far. If an error or runtime exception has occurred in a target's run method they are thrown by this method. |
| clearTargetErrors | |
| runTarget | Overloaded. Runs the run method of the specified target in an idle thread of this pool. When the target's run method completes, the thread waiting on the lock object is notified, if any. If there is currently no idle thread and the asynchronous mode is not used the method will block until a thread of the pool becomes idle or the calling thread is interrupted. If the asynchronous mode is used then the method will not block and will return false. |
Top
See Also