public interface ServerExecutorProps
| Modifier and Type | Method and Description |
|---|---|
int |
getCoreThreads()
核心线程数
|
long |
getIdleTimeout()
闲置超时
|
long |
getIdleTimeoutOrDefault()
闲置超时
|
int |
getMaxThreads(boolean isIoBound)
最大线程数
|
boolean |
isIoBound()
是否IO密集性
|
default ExecutorService |
newWorkExecutor(String namePrefix)
新建一个执行器
|
boolean isIoBound()
int getCoreThreads()
int getMaxThreads(boolean isIoBound)
long getIdleTimeout()
long getIdleTimeoutOrDefault()
default ExecutorService newWorkExecutor(String namePrefix)
Copyright © 2025. All rights reserved.