public final class ExecutorFactory extends Object
ExecutorFactory.Managed.
Unified thread pool creation factory without life cycle management ExecutorFactory.
two check style ignore will be removed after issue#2856 finished.
| 限定符和类型 | 类和说明 |
|---|---|
static class |
ExecutorFactory.Managed |
| 构造器和说明 |
|---|
ExecutorFactory() |
| 限定符和类型 | 方法和说明 |
|---|---|
static ThreadPoolExecutor |
newCustomerThreadExecutor(int coreThreads,
int maxThreads,
long keepAliveTimeMs,
ThreadFactory threadFactory) |
static ExecutorService |
newFixedExecutorService(int nThreads) |
static ExecutorService |
newFixedExecutorService(int nThreads,
ThreadFactory threadFactory) |
static ScheduledExecutorService |
newScheduledExecutorService(int nThreads,
ThreadFactory threadFactory) |
static ExecutorService |
newSingleExecutorService() |
static ExecutorService |
newSingleExecutorService(ThreadFactory threadFactory) |
static ScheduledExecutorService |
newSingleScheduledExecutorService(ThreadFactory threadFactory) |
public static ExecutorService newSingleExecutorService()
public static ExecutorService newSingleExecutorService(ThreadFactory threadFactory)
public static ExecutorService newFixedExecutorService(int nThreads)
public static ExecutorService newFixedExecutorService(int nThreads, ThreadFactory threadFactory)
public static ScheduledExecutorService newSingleScheduledExecutorService(ThreadFactory threadFactory)
public static ScheduledExecutorService newScheduledExecutorService(int nThreads, ThreadFactory threadFactory)
public static ThreadPoolExecutor newCustomerThreadExecutor(int coreThreads, int maxThreads, long keepAliveTimeMs, ThreadFactory threadFactory)
Copyright © 2018–2021 Alibaba Group. All rights reserved.