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

link.jfire.job.trigger.Trigger Maven / Gradle / Ivy

Go to download

The job is a very lightweight framework. The default support cycle task, timing task, automatic cycle extended task. And it can automatically by the code in the task of decision tasks to continue or not. Users only need to implement a job interfaces

The newest version!
package link.jfire.job.trigger;

import java.util.concurrent.Callable;

public interface Trigger extends Callable
{
    /**
     * 计算任务触发器下一次执行任务的时间
     */
    public void calNextTriggerTime();
    
    /**
     * 该任务触发器下一次执行任务的时间
     * 
     * @return
     */
    public long nextTriggerTime();
    
    /**
     * 当前的任务触发器是否需要被移除
     * 
     * @return
     */
    public boolean removed();
    
    /**
     * 移除该任务触发器
     */
    public void removeJob();
    
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy