net.nemerosa.ontrack.job.JobRegistration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ontrack-job Show documentation
Show all versions of ontrack-job Show documentation
Abstract management of identified jobs.
package net.nemerosa.ontrack.job;
import lombok.Data;
import lombok.experimental.Wither;
/**
* Association of a job and a schedule for a registration at startup.
*/
@Data
public class JobRegistration {
private final Job job;
@Wither
private final Schedule schedule;
public static JobRegistration of(Job job) {
return new JobRegistration(job, Schedule.NONE);
}
public JobRegistration everyMinutes(long minutes) {
return withSchedule(Schedule.everyMinutes(minutes));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy