public class Executors extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static interface |
Executors.ThrowableRunnable |
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
KEEP_ALIVE_TIME |
static TimeUnit |
KEEP_ALIVE_TIME_UNIT |
| 构造器和说明 |
|---|
Executors() |
| 限定符和类型 | 方法和说明 |
|---|---|
static ThreadPoolExecutor |
create(int core,
BlockingQueue<Runnable> blockingQueue,
String threadNamePrefix,
boolean isDaemon) |
static ThreadPoolExecutor |
create(int core,
BlockingQueue<Runnable> blockingQueue,
ThreadFactory threadFactory) |
static ThreadPoolExecutor |
create(int core,
int max,
BlockingQueue<Runnable> blockingQueue,
String threadNamePrefix,
boolean isDaemon) |
static ThreadPoolExecutor |
create(int core,
int max,
BlockingQueue<Runnable> blockingQueue,
ThreadFactory threadFactory) |
static ThreadPoolExecutor |
create(int core,
int max,
long keepAliveTime,
TimeUnit unit,
BlockingQueue<Runnable> blockingQueue,
ThreadFactory threadFactory) |
static ThreadPoolExecutor |
create(int core,
int max,
String threadNamePrefix) |
static ThreadPoolExecutor |
create(int core,
int max,
String threadNamePrefix,
boolean isDaemon) |
static ThreadPoolExecutor |
create(int core,
int max,
ThreadFactory threadFactory) |
static ThreadPoolExecutor |
create(int core,
String threadNamePrefix) |
static ThreadPoolExecutor |
create(int core,
String threadNamePrefix,
boolean isDaemon) |
static ThreadPoolExecutor |
create(int core,
ThreadFactory threadFactory) |
static ThreadPoolExecutor |
create(WrappingTaskFactory wrappingTaskFactory,
int core,
BlockingQueue<Runnable> blockingQueue,
String threadNamePrefix,
boolean isDaemon) |
static ThreadPoolExecutor |
create(WrappingTaskFactory wrappingTaskFactory,
int core,
BlockingQueue<Runnable> blockingQueue,
ThreadFactory threadFactory) |
static ThreadPoolExecutor |
create(WrappingTaskFactory wrappingTaskFactory,
int core,
int max,
BlockingQueue<Runnable> blockingQueue,
String threadNamePrefix,
boolean isDaemon) |
static ThreadPoolExecutor |
create(WrappingTaskFactory wrappingTaskFactory,
int core,
int max,
BlockingQueue<Runnable> blockingQueue,
ThreadFactory threadFactory) |
static ThreadPoolExecutor |
create(WrappingTaskFactory wrappingTaskFactory,
int core,
int max,
long keepAliveTime,
TimeUnit unit,
BlockingQueue<Runnable> blockingQueue,
ThreadFactory threadFactory) |
static ThreadPoolExecutor |
create(WrappingTaskFactory wrappingTaskFactory,
int core,
int max,
String threadNamePrefix) |
static ThreadPoolExecutor |
create(WrappingTaskFactory wrappingTaskFactory,
int core,
int max,
String threadNamePrefix,
boolean isDaemon) |
static ThreadPoolExecutor |
create(WrappingTaskFactory wrappingTaskFactory,
int core,
int max,
ThreadFactory threadFactory) |
static ThreadPoolExecutor |
create(WrappingTaskFactory wrappingTaskFactory,
int core,
String threadNamePrefix) |
static ThreadPoolExecutor |
create(WrappingTaskFactory wrappingTaskFactory,
int core,
String threadNamePrefix,
boolean isDaemon) |
static ThreadPoolExecutor |
create(WrappingTaskFactory wrappingTaskFactory,
int core,
ThreadFactory threadFactory) |
static int |
getDefaultKeepAliveTime() |
static TimeUnit |
getDefaultKeepAliveTimeUnit() |
static RejectedExecutionHandler |
getDefaultRejectedPolicy() |
static <V> Supplier<V> |
ignoreThrowable(Callable<V> callable) |
static Runnable |
ignoreThrowable(Executors.ThrowableRunnable runnable) |
static Runnable |
ignoreThrowable(Runnable runnable) |
static void |
setDefaultKeepAliveTime(int defaultKeepAliveTime) |
static void |
setDefaultKeepAliveTimeUnit(TimeUnit defaultKeepAliveTimeUnit) |
static void |
setDefaultRejectedPolicy(RejectedExecutionHandler defaultRejectedPolicy) |
static void |
shutdown(ExecutorService pool) |
static void |
shutdown(ExecutorService pool,
int timeoutSeconds) |
public static final int KEEP_ALIVE_TIME
public static final TimeUnit KEEP_ALIVE_TIME_UNIT
public static int getDefaultKeepAliveTime()
public static void setDefaultKeepAliveTime(int defaultKeepAliveTime)
public static TimeUnit getDefaultKeepAliveTimeUnit()
public static void setDefaultKeepAliveTimeUnit(TimeUnit defaultKeepAliveTimeUnit)
public static void setDefaultRejectedPolicy(RejectedExecutionHandler defaultRejectedPolicy)
public static RejectedExecutionHandler getDefaultRejectedPolicy()
public static ThreadPoolExecutor create(int core, String threadNamePrefix)
public static ThreadPoolExecutor create(int core, int max, String threadNamePrefix)
public static ThreadPoolExecutor create(int core, String threadNamePrefix, boolean isDaemon)
public static ThreadPoolExecutor create(int core, int max, String threadNamePrefix, boolean isDaemon)
public static ThreadPoolExecutor create(int core, BlockingQueue<Runnable> blockingQueue, String threadNamePrefix, boolean isDaemon)
public static ThreadPoolExecutor create(int core, int max, BlockingQueue<Runnable> blockingQueue, String threadNamePrefix, boolean isDaemon)
public static ThreadPoolExecutor create(int core, ThreadFactory threadFactory)
public static ThreadPoolExecutor create(int core, int max, ThreadFactory threadFactory)
public static ThreadPoolExecutor create(int core, BlockingQueue<Runnable> blockingQueue, ThreadFactory threadFactory)
public static ThreadPoolExecutor create(int core, int max, BlockingQueue<Runnable> blockingQueue, ThreadFactory threadFactory)
public static ThreadPoolExecutor create(int core, int max, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> blockingQueue, ThreadFactory threadFactory)
public static ThreadPoolExecutor create(WrappingTaskFactory wrappingTaskFactory, int core, String threadNamePrefix)
public static ThreadPoolExecutor create(WrappingTaskFactory wrappingTaskFactory, int core, int max, String threadNamePrefix)
public static ThreadPoolExecutor create(WrappingTaskFactory wrappingTaskFactory, int core, String threadNamePrefix, boolean isDaemon)
public static ThreadPoolExecutor create(WrappingTaskFactory wrappingTaskFactory, int core, int max, String threadNamePrefix, boolean isDaemon)
public static ThreadPoolExecutor create(WrappingTaskFactory wrappingTaskFactory, int core, BlockingQueue<Runnable> blockingQueue, String threadNamePrefix, boolean isDaemon)
public static ThreadPoolExecutor create(WrappingTaskFactory wrappingTaskFactory, int core, int max, BlockingQueue<Runnable> blockingQueue, String threadNamePrefix, boolean isDaemon)
public static ThreadPoolExecutor create(WrappingTaskFactory wrappingTaskFactory, int core, ThreadFactory threadFactory)
public static ThreadPoolExecutor create(WrappingTaskFactory wrappingTaskFactory, int core, int max, ThreadFactory threadFactory)
public static ThreadPoolExecutor create(WrappingTaskFactory wrappingTaskFactory, int core, BlockingQueue<Runnable> blockingQueue, ThreadFactory threadFactory)
public static ThreadPoolExecutor create(WrappingTaskFactory wrappingTaskFactory, int core, int max, BlockingQueue<Runnable> blockingQueue, ThreadFactory threadFactory)
public static ThreadPoolExecutor create(WrappingTaskFactory wrappingTaskFactory, int core, int max, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> blockingQueue, ThreadFactory threadFactory)
public static void shutdown(ExecutorService pool)
public static void shutdown(ExecutorService pool, int timeoutSeconds)
public static Runnable ignoreThrowable(Executors.ThrowableRunnable runnable)
Copyright © 2025 fossc. All rights reserved.