Add Quartz Scheduler support
See gh-4299
This commit is contained in:
committed by
Stephane Nicoll
parent
da6647c19e
commit
9e23206c31
@@ -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());
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user