org.usergrid.batch.repository.JobAccessor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of usergrid-scheduler Show documentation
Show all versions of usergrid-scheduler Show documentation
The scheduling framework for usergrid
package org.usergrid.batch.repository;
import java.util.List;
import org.usergrid.batch.JobExecution;
/**
* @author zznate
*/
public interface JobAccessor {
/**
* Get new jobs, with a max return value of size
* @param size
* @return
*/
public List getJobs(int size);
/**
* Save job execution information
* @param bulkJobExecution
*/
public void save(JobExecution bulkJobExecution);
/**
* Don't remove the execution, but rather schedule it to be fired after the given delay
* @param execution
* @param delay
*/
public void delayRetry(JobExecution execution, long delay);
}