aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/trygvis/queue/AsyncService.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/io/trygvis/queue/AsyncService.java')
-rwxr-xr-xsrc/main/java/io/trygvis/queue/AsyncService.java32
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;
- }
-}