摘要: 来源: 开发规约的道与术 阅读全文
posted @ 2023-06-14 16:41 码界小小学生 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 参考: 高并发编程之ScheduledThreadPoolExecutor讲解 import java.text.SimpleDateFormat; import java.util.Date; import java.util.concurrent.ScheduledFuture; import 阅读全文
posted @ 2023-06-14 15:03 码界小小学生 阅读(32) 评论(0) 推荐(0) 编辑
摘要: java.util.concurrent.ScheduledThreadPoolExecutor public ScheduledFuture<?> scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, Tim 阅读全文
posted @ 2023-06-14 14:54 码界小小学生 阅读(2) 评论(0) 推荐(0) 编辑
摘要: RUNNING: Accept new tasks and process queued tasks SHUTDOWN: Don't accept new tasks, but process queued tasks STOP: Don't accept new tasks, don't proc 阅读全文
posted @ 2023-06-14 09:59 码界小小学生 阅读(37) 评论(0) 推荐(0) 编辑