Implement if you want to FORCE a run right away (well within a few ms anyway)
Returns false by default.
public void
run
()
Implement here what should be run at the scheduled time.
Implement here what should be run at the scheduled time. Note: you should not call it from your own code run() but instead use forceRun() if you want to force a run.
public void
runCompleted
()
Will be called once a run has completed.
Will be called once a run has completed. Use this if you nedd to wait for a run to complete. Or if you want to fire some sort of event once the job is complete.
public boolean
skipRun
()
Implement if you want to skip run in particular cases (say while you do something else)
Or just return false to never skip.