public class ThreadPool extends Object implements IThreadPool
Modifier and Type | Class and Description |
---|---|
class |
ThreadPool.ServiceThread
A service thread executes tasks.
|
Constructor and Description |
---|
ThreadPool()
Create a new thread pool.
|
ThreadPool(IThreadPoolStrategy strategy)
Create a new thread pool.
|
public ThreadPool()
public ThreadPool(IThreadPoolStrategy strategy)
public void execute(Runnable task)
execute
in interface IThreadPool
task
- The task to execute.public void dispose()
dispose
in interface IThreadPool
public String toString()
public static void main(String[] args)
args
- The arguments.Copyright © 2012. All Rights Reserved.