nz.ac.auckland.jobs.periodic.AbstractJob.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of periodic-jobs Show documentation
Show all versions of periodic-jobs Show documentation
Simple scheduler for periodic jobs. Requires Spring.
The newest version!
package nz.ac.auckland.jobs.periodic
/**
* This is base interface for other jobs.
*
* @deprecated switch to using Job with @JobConfiguration annotation
*/
interface AbstractJob extends Job{
/**
* Initial delay before first execution in seconds
* @return
*/
Long getInitialDelay()
/**
* If returns true the job will not be scheduled and the onl way to stop it is to cancel it (using its Future)
* @return false if you don't want this job to be scheduled (usable during tests)
*/
Boolean isEnabled()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy