public class Executors
extends java.lang.Object
Executor instances.| Modifier and Type | Method and Description |
|---|---|
static java.util.concurrent.ExecutorService |
createDaemonExecutor(int poolSize,
int maxQueueSize)
Creates a blocking queue executor that uses daemon threads.
|
static java.util.concurrent.ThreadPoolExecutor |
createDaemonExecutor(int poolSize,
int maxQueueSize,
java.lang.String threadNamePrefix)
Creates a blocking queue executor that uses daemon threads.
|
public static java.util.concurrent.ThreadPoolExecutor createDaemonExecutor(int poolSize,
int maxQueueSize,
java.lang.String threadNamePrefix)
poolSize - The pool sizemaxQueueSize - The maximum queue sizethreadNamePrefix - The prefix for the thread nameExecutorpublic static java.util.concurrent.ExecutorService createDaemonExecutor(int poolSize,
int maxQueueSize)
poolSize - The pool sizemaxQueueSize - The maximum queue sizeExecutor