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

com.fastchar.job.quartz.FastQuartzConfig Maven / Gradle / Ivy

package com.fastchar.job.quartz;

import com.fastchar.core.FastChar;
import com.fastchar.interfaces.IFastConfig;

public class FastQuartzConfig implements IFastConfig {

    private boolean debug;
    private boolean useDatabase;
    private boolean createTable;

    public FastQuartzConfig() {
        FastChar.getOverrides().add(QuartzJobScheduler.class);
        FastChar.getObservable().addObserver(QuartzJobScheduler.class);
        if (FastChar.getConstant().isDebug()) {
            FastChar.getLog().info("已启用Quartz任务调度器!");
        }
    }

    public boolean isCreateTable() {
        return createTable;
    }

    public FastQuartzConfig setCreateTable(boolean createTable) {
        this.createTable = createTable;
        return this;
    }

    public boolean isUseDatabase() {
        return useDatabase;
    }

    public FastQuartzConfig setUseDatabase(boolean useDatabase) {
        this.useDatabase = useDatabase;
        return this;
    }

    public boolean isDebug() {
        return debug;
    }

    public FastQuartzConfig setDebug(boolean debug) {
        this.debug = debug;
        return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy