refactor(listIdentity): 线程池命名

This commit is contained in:
zhansihu 2023-11-13 17:08:11 +08:00
parent 39a89c9f22
commit 666b9344b7

View File

@ -27,7 +27,7 @@ public class ExecutorConfig {
new ThreadPoolExecutor.CallerRunsPolicy();
int coreSize = 5;
ThreadPoolExecutor executor = new ThreadPoolExecutor(coreSize, 30, 60, TimeUnit.SECONDS,
new ArrayBlockingQueue<>(50), new NamedThreadFactory("TYR-AUTH-EXECUTOR", false), new ThreadPoolExecutor.CallerRunsPolicy() {
new ArrayBlockingQueue<>(50), new NamedThreadFactory("TYR-AUTH-EXECUTOR-", false), new ThreadPoolExecutor.CallerRunsPolicy() {
@Override
public void rejectedExecution(Runnable r, ThreadPoolExecutor executor) {
log.warn("auth executor rejected , use caller runs");