|
@@ -12,9 +12,9 @@ import java.util.concurrent.TimeUnit;
|
|
|
*/
|
|
|
public final class ThreadPoolFactory {
|
|
|
private final static ExecutorService DEFAULT = new CommonThreadPoolExecutor(
|
|
|
- 1024,
|
|
|
- 1024,
|
|
|
- 0L, TimeUnit.SECONDS,
|
|
|
+ 512,
|
|
|
+ 512,
|
|
|
+ 60L, TimeUnit.SECONDS,
|
|
|
new LinkedBlockingQueue<>(1000),
|
|
|
new ThreadFactoryBuilder().setNameFormat("DEFAULT-%d").build(),
|
|
|
new ThreadPoolExecutor.AbortPolicy());
|