If I want to schedule at recurring task that is aligned with a specific date it would make sense to use ScheduledExecutorService. But it has no method to pass in the firstRunDate + subsequent delay to a scheduleAtFixedRate method. I know I can back out the initial delay myself but is there any reason this isn’t provided by the API? Especially as internally the SES is implemented using triggerTimes (which is what I want to pass in).
If I want to schedule at recurring task that is aligned with a specific
Share
Based on the documentation:
It looks as if it was a deseign decision. Its widely known that the Date class has its problems. For example TimeTask’s
public void scheduleAtFixedRate(TimerTask task, Date firstTime, long period)
does not account for day light savings time.