Announcement Announcement Module
Collapse
No announcement yet.
Possible for ScheduledTimerTask to execute at specified times instead of intervals? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Possible for ScheduledTimerTask to execute at specified times instead of intervals?

    I need for some tasks to execute at specified times of the day, week or month. Just like a unix cron job. Is this possible in Spring, I mean does this functionality exist?

    Currently, I can only specify intervals of time between executions of the task. I guess an easy way to get my desired functionality is to set those intervals very small and just check in code if it's during the time I want. But this isn't pretty at all, not easily changeable and I have to be very careful about missing an execution or executing more than once...
Working...
X