允许核心线程数回收
executor.allowCoreThreadTimeOut(true);
预热线程
//预热一个核心线程
executor.prestartCoreThread();
//预热所有核心线程
executor.prestartAllCoreThreads();
允许核心线程数回收
executor.allowCoreThreadTimeOut(true);
预热线程
//预热一个核心线程
executor.prestartCoreThread();
//预热所有核心线程
executor.prestartAllCoreThreads();