четверг, 31 октября 2013 г.

Qurtz - getTimeBefore();

This post is related to known problem with missing (not implemented method) getTimeBefore();  Method by default return null. The key issue was in getting previous run time when quartz-task hasn't yet been run. When we need to get previous fire time - there is no way to do this in standard way for the first-time quartz task run. Method is related to some kind of 'brute force' technique, it could be used once, on first-time run and then you could use standard method to retrieve previous time. The idea of method is to work with cron expression directly by sorting out values. This will NOT...