mirror of
https://github.com/LamGC/ContentGrabbingJi.git
synced 2025-06-30 20:37:26 +00:00
[Change] BotEventHandler 调整事件处理线程池的线程数;
This commit is contained in:
@ -52,8 +52,8 @@ public class BotEventHandler implements EventHandler {
|
||||
*/
|
||||
public final static EventExecutor executor = new EventExecutor(new TimeLimitThreadPoolExecutor(
|
||||
60 * 1000,
|
||||
(int) Math.ceil(Runtime.getRuntime().availableProcessors() / 2F),
|
||||
Runtime.getRuntime().availableProcessors(),
|
||||
Math.max(Runtime.getRuntime().availableProcessors() * 2, 16),
|
||||
30L,
|
||||
TimeUnit.SECONDS,
|
||||
new LinkedBlockingQueue<>(1536),
|
||||
|
Reference in New Issue
Block a user