public static final class ThreadHelp.TPConfig extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
ThreadHelp.TPConfig |
corePoolSize(int corePoolSize) |
ThreadHelp.TPConfig |
daemon(boolean daemon) |
ThreadHelp.TPConfig |
handler(RejectedExecutionHandler handler) |
ThreadHelp.TPConfig |
keepAliveTime(long keepAliveTime) |
ThreadHelp.TPConfig |
maximumPoolSize(int maximumPoolSize) |
static ThreadHelp.TPConfig |
of(String threadName) |
ThreadHelp.TPConfig |
priority(int priority) |
ThreadHelp.TPConfig |
tfType(ThreadHelp.TFType tfType) |
ThreadHelp.TPConfig |
tpType(ThreadHelp.TPType tpType) |
ThreadHelp.TPConfig |
unit(TimeUnit unit) |
ThreadHelp.TPConfig |
workQueue(BlockingQueue<Runnable> workQueue) |
public static ThreadHelp.TPConfig of(String threadName)
public ThreadHelp.TPConfig tpType(ThreadHelp.TPType tpType)
public ThreadHelp.TPConfig corePoolSize(int corePoolSize)
public ThreadHelp.TPConfig maximumPoolSize(int maximumPoolSize)
public ThreadHelp.TPConfig keepAliveTime(long keepAliveTime)
public ThreadHelp.TPConfig unit(TimeUnit unit)
public ThreadHelp.TPConfig workQueue(BlockingQueue<Runnable> workQueue)
public ThreadHelp.TPConfig tfType(ThreadHelp.TFType tfType)
public ThreadHelp.TPConfig handler(RejectedExecutionHandler handler)
public ThreadHelp.TPConfig daemon(boolean daemon)
public ThreadHelp.TPConfig priority(int priority)
Copyright © 2022. All rights reserved.