1 package ch.busyboxes.agoo.service; 2 3 /** 4 * Service running tasks 5 * 6 * @author julien@busyboxes.ch 7 */ 8 public interface WatcherTaskService { 9 10 /** 11 * Executes the next pending task 12 */ 13 public void runNextTask(); 14 15 /** 16 * Creates a new task to scan a folder 17 * 18 * @param folderId the folder id to be scanned 19 */ 20 public void addScanFolderTask(Long folderId); 21 22 /** 23 * Creates a new task to check a file 24 * 25 * @param fileId the file id to be checked 26 */ 27 public void addCheckFileTask(Long fileId); 28 }