diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2013-04-15 19:40:00 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2013-04-15 19:40:00 +0200 |
commit | c274d9177e4a495e7b793120dfd1ce12fa5632c7 (patch) | |
tree | 99b556d99543d96a5f91959c7da875db7499b8ff /src/main/java/io/trygvis/queue/AsyncService.java | |
parent | 8477e8a888d584cf1352a4b69d7cefb2b7cd9ace (diff) | |
download | quartz-based-queue-c274d9177e4a495e7b793120dfd1ce12fa5632c7.tar.gz quartz-based-queue-c274d9177e4a495e7b793120dfd1ce12fa5632c7.tar.bz2 quartz-based-queue-c274d9177e4a495e7b793120dfd1ce12fa5632c7.tar.xz quartz-based-queue-c274d9177e4a495e7b793120dfd1ce12fa5632c7.zip |
o Using the returned references to wait for completion.
Diffstat (limited to 'src/main/java/io/trygvis/queue/AsyncService.java')
-rwxr-xr-x | src/main/java/io/trygvis/queue/AsyncService.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/main/java/io/trygvis/queue/AsyncService.java b/src/main/java/io/trygvis/queue/AsyncService.java index f792f5e..b08db1f 100755 --- a/src/main/java/io/trygvis/queue/AsyncService.java +++ b/src/main/java/io/trygvis/queue/AsyncService.java @@ -2,6 +2,8 @@ package io.trygvis.queue; import org.quartz.*;
+import java.util.*;
+
public interface AsyncService<QueueRef extends AsyncService.QueueRef, ExecutionRef extends AsyncService.ExecutionRef> {
JpaAsyncService.JpaQueueRef registerQueue(String name, int interval, AsyncCallable callable) throws SchedulerException;
@@ -10,10 +12,21 @@ public interface AsyncService<QueueRef extends AsyncService.QueueRef, ExecutionR ExecutionRef schedule(QueueRef queue, String... args);
+ ExecutionRef update(ExecutionRef ref);
+
interface QueueRef {
}
interface ExecutionRef {
+ List<String> getArguments();
+
+ Date getScheduled();
+
+ Date getLastRun();
+
+ Date getCompleted();
+
+ boolean isDone();
}
interface AsyncCallable {
|