public class ThreadPool extends Object implements IThreadPool
| Modifier and Type | Class and Description |
|---|---|
class |
ThreadPool.ServiceThread
A service thread executes tasks.
|
| Modifier and Type | Field and Description |
|---|---|
static long |
PRINT_DELAY
Print every 10 seconds.
|
static boolean |
PROFILING
Enable call profiling.
|
| Constructor and Description |
|---|
ThreadPool()
Create a new thread pool.
|
ThreadPool(boolean daemon,
IThreadPoolStrategy strategy)
Create a new thread pool.
|
ThreadPool(IThreadPoolStrategy strategy)
Create a new thread pool.
|
public static final boolean PROFILING
public static final long PRINT_DELAY
public ThreadPool()
public ThreadPool(IThreadPoolStrategy strategy)
public ThreadPool(boolean daemon,
IThreadPoolStrategy strategy)
public void execute(Runnable task)
execute in interface IThreadPooltask - The task to execute.public void dispose()
dispose in interface IThreadPoolpublic String toString()
public static void main(String[] args)
args - The arguments.Copyright © 2012. All Rights Reserved.