英文:
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.
专注分享java语言的经验与见解,让所有开发者获益!
评论