定时任务
大风起曦云飞扬
我曾经翻过山和大海,也越过人山人海...
展开
-
Java多线程 ExecutorService Callable Future使用
需求:查询int数组中最大值 package test; import java.util.concurrent.Callable; import java.util.concurrent.ExecutionException; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors...原创 2020-04-13 15:50:51 · 210 阅读 · 0 评论 -
Java定时任务:使用 ScheduledExecutorService 创建定时任务
使用ScheduledExecutorServicescheduleAtFixedRate 实现定时任务: 1、Java代码 public class YdDataReader implements Runnable{ //如果配置文件中的定时任务运行时间run_time为空,使用此默认时间 private static final String RUN_TIME_DE...原创 2019-11-06 15:09:44 · 1479 阅读 · 0 评论