public final class ThreadHelp extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
ThreadHelp.TFType |
static class |
ThreadHelp.TPConfig |
static class |
ThreadHelp.TPType |
| 限定符和类型 | 方法和说明 |
|---|---|
static Thread[] |
getAllThreads() |
static <T extends Executor> |
getExecutor(ThreadHelp.TPConfig tpConfig)
通过配置获取线程池,并通过反射设置一些无法配置的属性
|
static Thread |
getThread(Predicate<Thread> predicate) |
static Thread |
getThreadById(long id) |
static Thread |
getThreadByName(String name) |
static ThreadFactory |
getThreadFactory(ThreadHelp.TPConfig tpConfig) |
public static Thread[] getAllThreads()
public static Thread getThreadById(long id)
public static ThreadFactory getThreadFactory(ThreadHelp.TPConfig tpConfig)
public static <T extends Executor> T getExecutor(ThreadHelp.TPConfig tpConfig)
Copyright © 2022. All rights reserved.