public class QuartzScheduling extends Object implements Scheduling
Scheduling.CreateOption, Scheduling.ScheduleOption| Constructor and Description |
|---|
QuartzScheduling(String name,
Options<Scheduling.CreateOption> options) |
| Modifier and Type | Method and Description |
|---|---|
protected org.quartz.Trigger |
initTrigger(String name,
Options<Scheduling.ScheduleOption> opts) |
boolean |
isRunning() |
org.quartz.JobKey |
lookupJob(String name) |
String |
name() |
boolean |
schedule(String name,
Runnable fn,
Map<Scheduling.ScheduleOption,Object> opts) |
Set<String> |
scheduledJobs() |
org.quartz.Scheduler |
scheduler() |
void |
start() |
void |
stop() |
boolean |
unschedule(String name) |
protected void |
validateOptions(Options<Scheduling.ScheduleOption> opts) |
public QuartzScheduling(String name, Options<Scheduling.CreateOption> options)
public void start()
throws Exception
public void stop()
throws Exception
public org.quartz.Scheduler scheduler()
public boolean schedule(String name, Runnable fn, Map<Scheduling.ScheduleOption,Object> opts) throws Exception
schedule in interface Schedulingopts - cron - String
at - java.util.Date
every - ms
in - ms
limit - int
until - java.util.Date
singletonExceptionpublic boolean unschedule(String name) throws org.quartz.SchedulerException
unschedule in interface Schedulingorg.quartz.SchedulerExceptionpublic Set<String> scheduledJobs()
scheduledJobs in interface Schedulingpublic org.quartz.JobKey lookupJob(String name)
protected void validateOptions(Options<Scheduling.ScheduleOption> opts) throws IllegalArgumentException
IllegalArgumentExceptionprotected org.quartz.Trigger initTrigger(String name, Options<Scheduling.ScheduleOption> opts)
Copyright © 2015. All Rights Reserved.