public class GlobalExecutorPool extends Object
ThreadPoolExecutor. The number of
threads is equal to the number of available hardware threads as reported by
Runtime.availableProcessors().
To avoid the need to shutdown the threadpool, the threads are all daemons.| Modifier and Type | Class and Description |
|---|---|
static class |
GlobalExecutorPool.DaemonThreadFactory
A
ThreadFactory that produces daemon threads. |
| Constructor and Description |
|---|
GlobalExecutorPool() |
public GlobalExecutorPool()
public static ThreadPoolExecutor getPool()