add default method

This commit is contained in:
Looly
2020-05-28 01:16:42 +08:00
parent 44fe8904a2
commit 6b6366e1ef
12 changed files with 298 additions and 113 deletions

View File

@@ -56,7 +56,7 @@ public enum GlobalPruneTimer {
if (null != pruneTimer) {
shutdownNow();
}
this.pruneTimer = new ScheduledThreadPoolExecutor(16, r -> ThreadUtil.newThread(r, StrUtil.format("Pure-Timer-{}", cacheTaskNumber.getAndIncrement())));
this.pruneTimer = new ScheduledThreadPoolExecutor(1, r -> ThreadUtil.newThread(r, StrUtil.format("Pure-Timer-{}", cacheTaskNumber.getAndIncrement())));
}
/**