![JAR search and dependency download from the Maven repository](/logo.png)
brainslug.flow.execution.async.SchedulerOptions Maven / Gradle / Ivy
The newest version!
package brainslug.flow.execution.async;
import java.util.concurrent.TimeUnit;
public class SchedulerOptions {
protected boolean disabled = false;
protected long scheduleDelay = 0;
protected long schedulePeriod = 5;
protected TimeUnit scheduleUnit = TimeUnit.SECONDS;
public long getSchedulePeriod() {
return schedulePeriod;
}
public SelfType withSchedulePeriod(long schedulePeriod) {
this.schedulePeriod = schedulePeriod;
return (SelfType) this;
}
public TimeUnit getScheduleUnit() {
return scheduleUnit;
}
public SelfType withScheduleUnit(TimeUnit scheduleUnit) {
this.scheduleUnit = scheduleUnit;
return (SelfType) this;
}
public long getScheduleDelay() {
return scheduleDelay;
}
public SelfType withScheduleDelay(long scheduleDelay) {
this.scheduleDelay = scheduleDelay;
return (SelfType) this;
}
public boolean isDisabled() {
return disabled;
}
public SelfType setDisabled(boolean disabled) {
this.disabled = disabled;
return (SelfType) this;
}
@Override
public String toString() {
return "SchedulerOptions{" +
"disabled=" + disabled +
", scheduleDelay=" + scheduleDelay +
", schedulePeriod=" + schedulePeriod +
", scheduleUnit=" + scheduleUnit +
'}';
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy