Add Quartz Scheduler support

See gh-4299
This commit is contained in:
Vedran Pavic
2017-05-30 18:48:12 +02:00
committed by Stephane Nicoll
parent da6647c19e
commit 9e23206c31
21 changed files with 846 additions and 1 deletions
@@ -0,0 +1,20 @@
package sample.quartz;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.quartz.QuartzJobBean;
public class SampleJob extends QuartzJobBean {
private static final Logger LOGGER = LoggerFactory.getLogger(SampleJob.class);
@Override
protected void executeInternal(JobExecutionContext context)
throws JobExecutionException {
LOGGER.info("Hello {}!", context.getJobDetail().getKey());
}
}