石英是如何计时的 [英] How does quartz track the time

查看:65
本文介绍了石英是如何计时的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

石英是如何计时的?它是在后台运行的连续计时器还是以某种方式使用操作系统调度程序还是其他什么?

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 ?

谢谢.

推荐答案

就我深入研究 Quartz 源代码而言,我发现(至少对于 QuartzScheduler 代理的 StdScheduler 实现) 其调度线程 QuartzSchedulingThread 使用 System.currentTimeMillis() 来预测下一个作业触发器运行.

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.

请看里面QuartzSchedulerThread.java .

这篇关于石英是如何计时的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆