io.mangoo.scheduler.Scheduler Maven / Gradle / Ivy
The newest version!
package io.mangoo.scheduler;
import com.google.inject.Singleton;
import java.util.HashSet;
import java.util.Objects;
import java.util.Set;
@Singleton
public class Scheduler {
private final Set schedules = new HashSet<>();
public Scheduler() {
}
public void addSchedule(Schedule schedule) {
Objects.requireNonNull(schedule, "can not be null");
schedules.add(schedule);
}
public Set getSchedules() {
return schedules;
}
}