Constructor and Description |
---|
ExecutorFactory() |
Modifier and Type | Method and Description |
---|---|
static ExecutorService |
createCachedThreadPool(String name)
Create a cached thread pool.
|
static ExecutorService |
createThreadPool(String name,
int numberOfThreads)
Create a fixed size thread pool.
|
static ScheduledExecutorService |
getUtilityScheduledExecutor()
Return a a shared scheduled executor for general timer tasks.
|
public static ExecutorService createThreadPool(String name, int numberOfThreads)
name
- Pool name.numberOfThreads
- The number of threads.public static ExecutorService createCachedThreadPool(String name)
name
- Pool name.public static ScheduledExecutorService getUtilityScheduledExecutor()
Copyright © 2000-2014. All Rights Reserved.