protected Date getNextDueDate() { CommandService commandService = jobExecutor.getCommandExecutor(); Command<Date> getNextDueDate = jobExecutor.getNextDueDateCommand(); return commandService.execute(getNextDueDate); }
protected Collection<Long> acquireJobs() { CommandService commandService = jobExecutor.getCommandExecutor(); Command<Collection<Long>> acquireJobsCommand = jobExecutor.getAcquireJobsCommand(); return commandService.execute(acquireJobsCommand); }