123
This commit is contained in:
@@ -17,15 +17,14 @@ public class YunExecutor {
|
||||
public static Executor YUN_EXECUTOR;
|
||||
|
||||
static {
|
||||
ThreadPoolExecutor roomExecutor = new ThreadPoolExecutor(CPU_NUM,
|
||||
YUN_EXECUTOR = new ThreadPoolExecutor(CPU_NUM,
|
||||
CPU_NUM << 2,
|
||||
5,
|
||||
TimeUnit.SECONDS,
|
||||
new ArrayBlockingQueue<>(5),
|
||||
init("yunxinThreadPoll-%d"),
|
||||
new ThreadPoolExecutor.CallerRunsPolicy());
|
||||
YUN_EXECUTOR = TtlExecutors.getTtlExecutor(roomExecutor);
|
||||
|
||||
// YUN_EXECUTOR = TtlExecutors.getTtlExecutor(roomExecutor);
|
||||
}
|
||||
|
||||
private static ThreadFactory init(String nameFormat){
|
||||
|
||||
Reference in New Issue
Block a user