期刊文献+

Spring的任务定时调度方法的研究比较 被引量:12

Research and Comparison of Spring Task Schedule Methods
在线阅读 下载PDF
导出
摘要 在Web应用中,经常需要将某个工作安排在某个特定时间点去做。Spring提供了丰富多样的任务执行调度,包括使用JDK Timer、使用SchedulingTaskExecutor接口的实现类、使用Quartz、使用TaskScheduler以及采用@Scheduled注解等多种形式。研究得出,JDK Timer仅支持简单的间隔定时执行;SchedulingTaskExecutor接口的实现类提供了并发任务的各类执行方式;Quartz和TaskScheduler支持基于Cron表达式的定时调度,后者还可通过@Scheduled注解定义任务定时。 Some tasks in web applications are often arranged in a special time. Spring provides various ways for task scheduling such as using by JDK Timer,by the concrete class which implements SchedulingTaskExecutor interface,by Quartz,by TaskScheduler, and by the annotation named @Scheduled.The paper studies and achieves that JDK Timer only supports simple Interval timing task;the concrete class of SchedulingTaskExecutor provides many kinds of execute mode for concurrent task. In additon,Quartz and TaskScheduler support time scheduling with Cron expression, and the latter also supports the definition of @Scheduled annotation.
出处 《智能计算机与应用》 2012年第4期55-56,60,共3页 Intelligent Computer and Applications
关键词 Spring任务调度 TaskExecutor QUARTZ TaskScheduler @Scheduled注解 Spring task schedule TaskExecutor Quartz TaskScheduler @Scheduled annotation
  • 相关文献

参考文献3

二级参考文献9

  • 1Jason Beaird.完美网页设计艺术[M].北京:人民邮电出版社,2008.
  • 2SasJacobs.XML基础教程:入门、DOM、Ajax与Flash[M].北京:人民邮电出版社,2007.
  • 3朱仲杰.Java2全方位学习[M].北京:机械工业出版社,2006.
  • 4Paul Thurrott.Visual InterDev6技术内幕[M].北京:人民邮电出版社,2000.
  • 5Steve Krug.Don't Make Me Think[M].北京:机械工业出版社,2006.
  • 6赛迪网.Quartz入门[EB/OL].http://tech.ccidnet.com/art/1112/20051122/377733_2.html,2005-11-22.
  • 7Bruce Eckel.Java编程思想[M].北京:机械工业出版社,2002..
  • 8Steven Holzner.XML完全探索[M].北京:中国青年出版社,2001.
  • 9Jeremy Keith.JavaScript DOM编程艺术[M].杨涛,译.北京:人民邮电出版社,2007:35-50.

共引文献13

同被引文献81

引证文献12

二级引证文献25

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部