摘要:
使用CompletionService解决耗时时间过长任务导致的阻塞问题 package com.dwz.executors; import java.util.ArrayList; import java.util.List; import java.util.concurrent.Callabl 阅读全文
posted @ 2020-08-14 17:03
龙宇在天
阅读(1116)
评论(0)
推荐(0)
摘要:
定时任务的四种形式: 1.无返回值,入参Runnable private static void testScheduledFutureRunnable() { ScheduledThreadPoolExecutor executor = new ScheduledThreadPoolExecuto 阅读全文
posted @ 2020-08-14 14:38
龙宇在天
阅读(753)
评论(0)
推荐(0)

浙公网安备 33010602011771号