com.github.zw201913.quartzcluster.service.IScheduleService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quartz-cluster Show documentation
Show all versions of quartz-cluster Show documentation
extended quartz distributed timing tasks
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);
}