protected void initializeRetries( JobEntity job, String failedJobRetryTimeCycle, DurationHelper durationHelper) { log.fine( "Applying JobRetryStrategy '" + failedJobRetryTimeCycle + "' the first time for job " + job.getId() + " with " + durationHelper.getTimes() + " retries"); job.setRetries(durationHelper.getTimes()); }
protected void setLockExpirationTime( JobEntity job, String failedJobRetryTimeCycle, DurationHelper durationHelper) { job.setLockExpirationTime(durationHelper.getDateAfter()); }