diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2013-04-11 19:12:27 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2013-04-11 19:12:27 +0200 |
commit | b59f08bb5b08be7972086037ec54b23ea9fb49f8 (patch) | |
tree | ef168ed7da2aa9fe8766a0d1625aa40e36a8ad99 /src/main/java/io/trygvis/queue/AsyncService.java | |
parent | cd99d57cccb88ea8a058eca530d62a81a665983c (diff) | |
download | quartz-based-queue-b59f08bb5b08be7972086037ec54b23ea9fb49f8.tar.gz quartz-based-queue-b59f08bb5b08be7972086037ec54b23ea9fb49f8.tar.bz2 quartz-based-queue-b59f08bb5b08be7972086037ec54b23ea9fb49f8.tar.xz quartz-based-queue-b59f08bb5b08be7972086037ec54b23ea9fb49f8.zip |
wip
Diffstat (limited to 'src/main/java/io/trygvis/queue/AsyncService.java')
-rwxr-xr-x | src/main/java/io/trygvis/queue/AsyncService.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/io/trygvis/queue/AsyncService.java b/src/main/java/io/trygvis/queue/AsyncService.java index dcbe991..de0a1af 100755 --- a/src/main/java/io/trygvis/queue/AsyncService.java +++ b/src/main/java/io/trygvis/queue/AsyncService.java @@ -4,7 +4,7 @@ import org.quartz.*; public interface AsyncService<QueueRef extends AsyncService.QueueRef, ExecutionRef extends AsyncService.ExecutionRef> {
- void registerQueue(String name, int interval, Class klass) throws SchedulerException;
+ void registerQueue(String name, int interval, AsyncCallable callable) throws SchedulerException;
QueueRef getQueue(String name);
@@ -15,4 +15,8 @@ public interface AsyncService<QueueRef extends AsyncService.QueueRef, ExecutionR interface ExecutionRef {
}
+
+ interface AsyncCallable {
+ void run() throws Exception;
+ }
}
|