public class ThreadPoolFactory extends Object
| 构造器和说明 |
|---|
ThreadPoolFactory() |
| 限定符和类型 | 方法和说明 |
|---|---|
static ExecutorService |
createDefaultThreadPool(String threadNamePrefix) |
static ExecutorService |
createDefaultThreadPool(String threadNamePrefix,
Boolean daemon) |
static ExecutorService |
createThreadPool(String threadNamePrefix,
Boolean daemon,
int corePoolSize,
int maximumPoolSize) |
static ExecutorService |
createThreadPool(String threadNamePrefix,
int corePoolSize,
int maximumPoolSize) |
static void |
main(String[] args) |
static void |
shutdownAll() |
public static void main(String[] args)
public static ExecutorService createDefaultThreadPool(String threadNamePrefix)
public static ExecutorService createDefaultThreadPool(String threadNamePrefix, Boolean daemon)
public static ExecutorService createThreadPool(String threadNamePrefix, int corePoolSize, int maximumPoolSize)
public static ExecutorService createThreadPool(String threadNamePrefix, Boolean daemon, int corePoolSize, int maximumPoolSize)
public static void shutdownAll()
Copyright © 2023. All rights reserved.