Package org.n52.bjornoya.schedule
Class Scheduler
java.lang.Object
org.n52.bjornoya.schedule.Scheduler
- All Implemented Interfaces:
Destroyable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()org.quartz.Schedulerintvoidinit()booleanvoidscheduleJob(ScheduledJob taskToSchedule) voidsetEnabled(boolean enabled) voidsetScheduler(org.quartz.Scheduler scheduler) voidsetStartupDelayInSeconds(int startupDelayInSeconds) voidshutdown()Shuts down the task scheduler without waiting tasks to be finished.voidupdateJob(ScheduledJob taskToSchedule)
-
Constructor Details
-
Scheduler
public Scheduler()
-
-
Method Details
-
init
public void init() -
updateJob
- Throws:
org.quartz.SchedulerException
-
scheduleJob
-
shutdown
public void shutdown()Shuts down the task scheduler without waiting tasks to be finished. -
destroy
public void destroy()- Specified by:
destroyin interfaceDestroyable
-
getStartupDelayInSeconds
public int getStartupDelayInSeconds() -
setStartupDelayInSeconds
public void setStartupDelayInSeconds(int startupDelayInSeconds) -
getScheduler
public org.quartz.Scheduler getScheduler() -
setScheduler
public void setScheduler(org.quartz.Scheduler scheduler) -
isEnabled
public boolean isEnabled() -
setEnabled
public void setEnabled(boolean enabled)
-