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

com.github.zw201913.quartzcluster.service.IScheduleService Maven / Gradle / Ivy

There is a newer version: 1.0.5.RELEASE
Show newest version
package com.github.zw201913.quartzcluster.service;

import com.github.zw201913.quartzcluster.support.CronJobDefinition;
import com.github.zw201913.quartzcluster.support.Key;
import com.github.zw201913.quartzcluster.support.SimpleJobDefinition;

/** @author zouwei */
public interface IScheduleService {
    /** @param cronJobDefinition */
    void schedule(CronJobDefinition cronJobDefinition);

    /** @param simpleJobDefinition */
    void schedule(SimpleJobDefinition simpleJobDefinition);

    /**
     * 暂停触发器
     *
     * @param key
     */
    void pauseTrigger(Key key);

    /**
     * 恢复触发器
     *
     * @param key
     */
    void resumeTrigger(Key key);

    /**
     * 删除触发器
     *
     * @param key
     * @return
     */
    boolean removeTrigger(Key key);

    /**
     * 暂停任务
     *
     * @param key
     */
    void pauseJob(Key key);

    /**
     * 恢复任务
     *
     * @param key
     */
    void resumeJob(Key key);

    /**
     * 移除任务
     *
     * @param key
     * @return
     */
    boolean removeJob(Key key);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy