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

com.fastchar.job.FastJob Maven / Gradle / Ivy

package com.fastchar.job;

import com.fastchar.core.FastChar;
import com.fastchar.job.core.FastJobBase;
import com.fastchar.job.interfaces.IFastJobScheduler;

public final  class FastJob {

    public static void startJob(FastJobBase job) {
        FastChar.getOverrides().singleInstance(IFastJobScheduler.class).startJob(job);
    }

    public static void removeJob(String... codes) {
        for (String code : codes) {
            FastChar.getOverrides().singleInstance(IFastJobScheduler.class).removeJob(code);
        }
    }


    public static boolean existJob(String code) {
        return FastChar.getOverrides().singleInstance(IFastJobScheduler.class).existJob(code);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy