diff options
Diffstat (limited to 'src/main/java/io/trygvis/queue/AsyncService.java')
-rwxr-xr-x | src/main/java/io/trygvis/queue/AsyncService.java | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/src/main/java/io/trygvis/queue/AsyncService.java b/src/main/java/io/trygvis/queue/AsyncService.java deleted file mode 100755 index c9e5861..0000000 --- a/src/main/java/io/trygvis/queue/AsyncService.java +++ /dev/null @@ -1,32 +0,0 @@ -package io.trygvis.queue; - -import org.quartz.SchedulerException; - -import java.util.List; - -public interface AsyncService { - - /** - * @param name - * @param interval how often the queue should be polled for missed tasks in seconds. - * @param callable - * @return - * @throws SchedulerException - */ - Queue registerQueue(String name, int interval, AsyncCallable callable) throws SchedulerException; - - Queue getQueue(String name); - - Task schedule(Queue queue, String... args); - - Task schedule(long parent, Queue queue, String... args); - - /** - * Polls for a new state of the execution. - */ - Task update(Task ref); - - interface AsyncCallable { - void run(List<String> arguments) throws Exception; - } -} |