摘要: 使用CompletionService解决耗时时间过长任务导致的阻塞问题 package com.dwz.executors; import java.util.ArrayList; import java.util.List; import java.util.concurrent.Callabl 阅读全文
posted @ 2020-08-14 17:03 龙宇在天 阅读(1057) 评论(0) 推荐(0) 编辑
摘要: 定时任务的四种形式: 1.无返回值,入参Runnable private static void testScheduledFutureRunnable() { ScheduledThreadPoolExecutor executor = new ScheduledThreadPoolExecuto 阅读全文
posted @ 2020-08-14 14:38 龙宇在天 阅读(698) 评论(0) 推荐(0) 编辑
//右侧添加目录 //增加页面点击显示24字社会主义核心价值观