创建动态线程池时默认需要等待任务 5 秒结束时间.

pull/12/head
chen.ma 3 years ago
parent 389f312e6a
commit 0ef266fb77

@ -105,12 +105,12 @@ public class ThreadPoolBuilder implements Builder<ThreadPoolExecutor> {
/**
*
*/
private Long awaitTerminationMillis = 0L;
private Long awaitTerminationMillis = 5000L;
/**
*
*/
private Boolean waitForTasksToCompleteOnShutdown = false;
private Boolean waitForTasksToCompleteOnShutdown = true;
/**
* CPU / (1 - 0.8)

Loading…
Cancel
Save