public class ExecutorsUtil extends Object
SplitScheduledThreadPoolExecutor IS
EXPERIMENTAL! IT'S INTENDED TO BE USED FOR REPRODUCING BENCHMARKS OF ISSUE
#690| Modifier and Type | Field and Description |
|---|---|
static ThreadGroup |
TIMER_THREAD_GROUP
Thread group for timers.
|
| Constructor and Description |
|---|
ExecutorsUtil() |
| Modifier and Type | Method and Description |
|---|---|
static ScheduledThreadPoolExecutor |
getScheduledExecutor()
Get general scheduled executor.
|
static ExecutorService |
newFixedThreadPool(int poolSize,
ThreadFactory threadFactory)
Create a fixed thread pool.
|
static ScheduledExecutorService |
newScheduledThreadPool(int poolSize,
ThreadFactory threadFactory)
Create a scheduled thread pool executor service.
|
static ScheduledExecutorService |
newSingleThreadScheduledExecutor(ThreadFactory threadFactory)
Create a single threaded scheduled executor service.
|
public static final ThreadGroup TIMER_THREAD_GROUP
public static ScheduledExecutorService newScheduledThreadPool(int poolSize, ThreadFactory threadFactory)
SPLIT_THRESHOLD, the SplitScheduledThreadPoolExecutor is
returned.poolSize - number of threads for thread pool.threadFactory - thread factorypublic static ExecutorService newFixedThreadPool(int poolSize, ThreadFactory threadFactory)
poolSize - number of threads for thread pool.threadFactory - thread factorypublic static ScheduledExecutorService newSingleThreadScheduledExecutor(ThreadFactory threadFactory)
threadFactory - thread factorypublic static ScheduledThreadPoolExecutor getScheduledExecutor()
Copyright © 2019 Eclipse Foundation. All rights reserved.