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() |
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)
@Deprecated public static ExecutorService newSingleExecutorService(String group)
@Deprecated public static ExecutorService newSingleExecutorService(String group, ThreadFactory threadFactory)
@Deprecated public static ExecutorService newFixedExecutorService(String group, int nThreads)
@Deprecated public static ExecutorService newFixedExecutorService(String group, int nThreads, ThreadFactory threadFactory)
@Deprecated public static ScheduledExecutorService newSingleScheduledExecutorService(String group, ThreadFactory threadFactory)
@Deprecated public static ScheduledExecutorService newScheduledExecutorService(String group, int nThreads, ThreadFactory threadFactory)
@Deprecated public static ThreadPoolExecutor newCustomerThreadExecutor(String group, int coreThreads, int maxThreads, long keepAliveTimeMs, ThreadFactory threadFactory)
Copyright © 2018–2020 Alibaba Group. All rights reserved.