public class NamedThreadPools extends Object
| 构造器和说明 |
|---|
NamedThreadPools() |
| 限定符和类型 | 方法和说明 |
|---|---|
static ExecutorService |
newCachedThreadPool(String name) |
static ExecutorService |
newCachedThreadPool(ThreadFactory threadFactory) |
static ExecutorService |
newFixedThreadPool(int nThreads,
String name) |
static ExecutorService |
newFixedThreadPool(String prefix) |
static ScheduledExecutorService |
newScheduledThreadPool(int corePoolSize,
String name) |
static ScheduledExecutorService |
newScheduledThreadPool(int corePoolSize,
ThreadFactory threadFactory) |
public NamedThreadPools()
public static ExecutorService newFixedThreadPool(String prefix)
public static ExecutorService newFixedThreadPool(int nThreads, String name)
public static ExecutorService newCachedThreadPool(String name)
public static ExecutorService newCachedThreadPool(ThreadFactory threadFactory)
public static ScheduledExecutorService newScheduledThreadPool(int corePoolSize, String name)
public static ScheduledExecutorService newScheduledThreadPool(int corePoolSize, ThreadFactory threadFactory)
Copyright © 2024. All rights reserved.