public class JavaThreadPool extends Object implements IThreadPool
| Constructor and Description |
|---|
JavaThreadPool()
Create a new ThreadPool5.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Shutdown the thread pool.
|
void |
execute(Runnable task)
Execute a task in its own thread.
|
boolean |
isRunning()
Test if the thread pool is running.
|
public void execute(Runnable task)
execute in interface IThreadPooltask - The task to execute.public void dispose()
dispose in interface IThreadPoolpublic boolean isRunning()
isRunning in interface IThreadPoolCopyright © 2015. All Rights Reserved.