数据互导功能开发

This commit is contained in:
暮光:城中城
2019-10-06 18:19:27 +08:00
parent 9b4decf68a
commit aebc6d2d8b
21 changed files with 902 additions and 39 deletions

View File

@@ -0,0 +1,16 @@
package com.zyplayer.doc.data.utils;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
public class ThreadPoolUtil {
private static final ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(20, 100, 30, TimeUnit.SECONDS, new LinkedBlockingQueue<>());
/**
* 获取线程池
*/
public static ThreadPoolExecutor getThreadPool() {
return threadPoolExecutor;
}
}