Quartz vs Java EE 7 scheduler

我的梦境 提交于 2019-12-05 00:44:22

I believe that in future projects, there's really no need to use third-party libraries. Java EE 7 is full of scheduling features. Besides the new ManagedScheduledExecutorService, there's already the Schedule annotation for single and periodic repeating tasks and the Timeout annotation to create timers programmatically. IMO the new managed scheduled service is better suited for single delayed tasks or to create a job chain with delays betweens specific tasks.

You can find more about Java EE Timer Service (Schedule and Timeout) Java EE 6 or Java EE 7.

On a side note, if you ever try clustering your application, it's relatively easy to setup Schedule-like timers to run globally, instead of once per node - which is another plus.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!