All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy