com.breuninger.boot.jobs.definition.JobDefinition Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-boot-starter-breuninger-jobs Show documentation
Show all versions of spring-boot-starter-breuninger-jobs Show documentation
spring-boot-starter-breuninger-jobs
package com.breuninger.boot.jobs.definition;
import java.time.Duration;
import java.util.Optional;
public interface JobDefinition {
String jobType();
String jobName();
String description();
default Optional maxAge() {
return Optional.empty();
}
default Optional fixedDelay() {
return Optional.empty();
}
default Optional cron() {
return Optional.empty();
}
default int restarts() {
return 0;
}
default int retries() {
return 0;
}
default Optional retryDelay() {
return Optional.empty();
}
}