public final class ExecutorPoolUtils extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static Executor |
createExecutor(int corePoolSize,
int maximumPoolSize,
int capacity,
String threadName)
创建一个线程池
|
static Executor |
createExecutor(int capacity,
String threadName)
创建一个线程池, 简单的重载
createExecutor(int, int, int, String) |
public static Executor createExecutor(int capacity, String threadName)
createExecutor(int, int, int, String)capacity - 队列长度threadName - 线程名Copyright © 2022. All rights reserved.