How does quartz track the time

吃可爱长大的小学妹 提交于 2019-12-12 01:22:25

问题


How does quartz track the time ? Is it a continuous timer running in background or does it somehow uses the OS scheduler or is it something else ?

Which class actually holds this feature ?

Thanks.


回答1:


As far as I digged into Quartz source code, I found (at least for StdScheduler implementation which is proxy of QuartzScheduler) that its scheduling thread QuartzSchedulingThread uses System.currentTimeMillis() for prediction of the next job trigger run.

Please look inside QuartzSchedulerThread.java .



来源:https://stackoverflow.com/questions/2951121/how-does-quartz-track-the-time

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