public static class WorkerEnvironment.Builder extends java.lang.Object
| Constructor and Description | 
|---|
Builder()  | 
| Modifier and Type | Method and Description | 
|---|---|
WorkerEnvironment | 
withCachedThreadPool()  | 
WorkerEnvironment | 
withFixedThreadPool()  | 
WorkerEnvironment | 
withFixedThreadPool(int size)  | 
WorkerEnvironment | 
withSingleThreadExecutor()  | 
public Builder()
public WorkerEnvironment withCachedThreadPool()
Executors.newCachedThreadPool()public WorkerEnvironment withFixedThreadPool(int size)
size - the thread pool size.Executors.newFixedThreadPool(int)public WorkerEnvironment withFixedThreadPool()
Executors.newFixedThreadPool(int), 
Runtime.availableProcessors()public WorkerEnvironment withSingleThreadExecutor()