public interface ServerExecutorProps
限定符和类型 | 方法和说明 |
---|---|
int |
getCoreThreads()
核心线程数
|
long |
getIdleTimeout()
闲置超时
|
long |
getIdleTimeoutOrDefault()
闲置超时
|
int |
getMaxThreads(boolean isIoBound)
最大线程数
|
boolean |
isIoBound()
是否IO密集性
|
default java.util.concurrent.ExecutorService |
newWorkExecutor(java.lang.String namePrefix)
新建一个执行器
|
boolean isIoBound()
int getCoreThreads()
int getMaxThreads(boolean isIoBound)
long getIdleTimeout()
long getIdleTimeoutOrDefault()
default java.util.concurrent.ExecutorService newWorkExecutor(java.lang.String namePrefix)