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

com.github.ltsopensource.queue.SuspendJobQueue Maven / Gradle / Ivy

package com.github.ltsopensource.queue;

import com.github.ltsopensource.queue.domain.JobPo;
import com.github.ltsopensource.store.jdbc.exception.DupEntryException;

/**
 * 暂停队列
 *
 * @author Robert HG ([email protected]) on 5/27/15.
 */
public interface SuspendJobQueue extends JobQueue{

    /**
     * 添加任务
     *
     * @throws DupEntryException
     */
    boolean add(JobPo jobPo);

    JobPo getJob(String jobId);

    /**
     * 移除Cron Job
     */
    boolean remove(String jobId);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy