/*
 * Copyright 2001-2022 Geert Bevin (gbevin[remove] at uwyn dot com)
 * Licensed under the Apache License, Version 2.0 (the "License")
 */
package rife.scheduler.schedulermanagers;

import rife.scheduler.Scheduler;
import rife.scheduler.SchedulerFactory;
import rife.scheduler.taskmanagers.MemoryTasks;
import rife.scheduler.taskoptionmanagers.MemoryTaskoptions;

public class MemoryScheduler implements SchedulerFactory {
    private Scheduler scheduler_ = null;

    public MemoryScheduler() {
    }

    public Scheduler getScheduler() {
        if (null == scheduler_) {
            scheduler_ = new Scheduler(new MemoryTasks(), new MemoryTaskoptions());
        }
        return scheduler_;
    }
}
