From a088987e7ab7005db1bb1da61dfc0cf420e02d78 Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期三, 13 十一月 2024 17:11:28 +0800 Subject: [PATCH] 1 --- src/main/java/com/moon/server/helper/AsyncHelper.java | 18 +----------------- 1 files changed, 1 insertions(+), 17 deletions(-) diff --git a/src/main/java/com/moon/server/helper/AsyncHelper.java b/src/main/java/com/moon/server/helper/AsyncHelper.java index ac662f8..64b4219 100644 --- a/src/main/java/com/moon/server/helper/AsyncHelper.java +++ b/src/main/java/com/moon/server/helper/AsyncHelper.java @@ -9,15 +9,8 @@ import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.TimeUnit; -/** - * 寮傛甯姪绫� - * @author WWW - * @date 2023-07-10 - */ +@SuppressWarnings("ALL") public class AsyncHelper { - /** - * 鎿嶄綔寤惰繜10姣 - */ private final static int OPERATE_DELAY_TIME = 10; // private final static AsyncHelper INSTANCE = new AsyncHelper(); @@ -29,23 +22,14 @@ public AsyncHelper() { } - /** - * 鎵ц浠诲姟 - */ public void execute(TimerTask task) { executor.schedule(task, OPERATE_DELAY_TIME, TimeUnit.MILLISECONDS); } - /** - * 鍏抽棴浠诲姟 - */ public void shutdown() { shutdownAndAwaitTermination(executor); } - /** - * 鍋滄浠诲姟绾跨▼姹� - */ public static void shutdownAndAwaitTermination(ExecutorService pool) { try { if (null == pool || pool.isShutdown()) { -- Gitblit v1.9.3