How to call a thread to run on specific time in java?

前端 未结 3 1875
天命终不由人
天命终不由人 2021-02-05 18:54

I want o make threads execute at specific exact times (for example at: 2012-07-11 13:12:24 and 2012-07-11 15:23:45)

I checked ScheduledExecutorService, but

3条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-05 19:20

    I think you should better use some library like the Quartz Scheduler. This is basically an implementation of cron for Java.

提交回复
热议问题