aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/trygvis/queue/AsyncService.java
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2013-04-20 17:29:18 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2013-04-20 17:31:02 +0200
commita03d5154456587fc7920e632f083cc5f1e4318a9 (patch)
tree08cddc03fc61aae0cfd4deb08bd8f99aca19bd40 /src/main/java/io/trygvis/queue/AsyncService.java
parent637dddf11f5d60b35c9696914e1e2658b2ddc611 (diff)
downloadquartz-based-queue-a03d5154456587fc7920e632f083cc5f1e4318a9.tar.gz
quartz-based-queue-a03d5154456587fc7920e632f083cc5f1e4318a9.tar.bz2
quartz-based-queue-a03d5154456587fc7920e632f083cc5f1e4318a9.tar.xz
quartz-based-queue-a03d5154456587fc7920e632f083cc5f1e4318a9.zip
wip
Diffstat (limited to 'src/main/java/io/trygvis/queue/AsyncService.java')
-rwxr-xr-xsrc/main/java/io/trygvis/queue/AsyncService.java58
1 files changed, 30 insertions, 28 deletions
diff --git a/src/main/java/io/trygvis/queue/AsyncService.java b/src/main/java/io/trygvis/queue/AsyncService.java
index 10f1b79..b42b550 100755
--- a/src/main/java/io/trygvis/queue/AsyncService.java
+++ b/src/main/java/io/trygvis/queue/AsyncService.java
@@ -1,28 +1,30 @@
-package io.trygvis.queue;
-
-import org.quartz.*;
-
-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);
-
- /**
- * Polls for a new state of the execution.
- */
- Task update(Task ref);
-
- interface AsyncCallable {
- void run() throws Exception;
- }
-}
+package io.trygvis.queue;
+
+import org.quartz.*;
+
+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);
+
+ /**
+ * Polls for a new state of the execution.
+ */
+ Task update(Task ref);
+
+ interface AsyncCallable {
+ void run(List<String> arguments) throws Exception;
+ }
+}