Sure, here’s the translation: 在Java中的ManagedSchedulerExecutorService类

huangapple 未分类评论46阅读模式
英文:

ManagedSchedulerExecutorService class in java

问题

我必须每天下午 5 点运行一个特定的 Java 类。我正在尝试使用 ManagedSchedulerExecutorService 类。

但是使用这个类,我可以在初始延迟后启动作业,然后按特定间隔运行。

我希望我的作业每天在下午 5 点触发。是否有可能通过一些编程实现这一点?

有没有办法做到这一点?是否有任何其他 API 可以帮助我?

我不允许使用第三方库,只能使用 Java API。

英文:

I have to run a particular Java class at 5pm daily. I am trying to use ManagedSchedulerExecutorService class.

But using this class I can start job after initial delay and then at specific interval.

I want my job to be triggered at 5pm daily. Is this possible using some coding?

Is there any way to do that? Can any other API help me?

I am not allowed to use third party libraries. only Java APIs.

huangapple
  • 本文由 发表于 2020年7月24日 04:49:32
  • 转载请务必保留本文链接:https://java.coder-hub.com/63062917.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定