aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2013-06-17 07:27:01 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2013-06-17 07:27:01 +0200
commit86cf88c47df876824f273e9e2671c9fc561c69aa (patch)
treec721651dcb5d473c5e855d93b4f594004468e0f2 /src/main
parente57f313713ee0fc52d7dd1247c51914d1462dfc2 (diff)
downloadquartz-based-queue-86cf88c47df876824f273e9e2671c9fc561c69aa.tar.gz
quartz-based-queue-86cf88c47df876824f273e9e2671c9fc561c69aa.tar.bz2
quartz-based-queue-86cf88c47df876824f273e9e2671c9fc561c69aa.tar.xz
quartz-based-queue-86cf88c47df876824f273e9e2671c9fc561c69aa.zip
wip
Diffstat (limited to 'src/main')
-rwxr-xr-xsrc/main/java/io/trygvis/queue/Task.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main/java/io/trygvis/queue/Task.java b/src/main/java/io/trygvis/queue/Task.java
index 29e37ac..8038050 100755
--- a/src/main/java/io/trygvis/queue/Task.java
+++ b/src/main/java/io/trygvis/queue/Task.java
@@ -84,16 +84,16 @@ public class Task {
return completed != null;
}
- public Task childTask(String name, Date scheduled, String... arguments) {
- return new Task(0, id(), name, NEW, scheduled, null, 0, null, asList(arguments));
+ public Task childTask(String queue, Date scheduled, String... arguments) {
+ return new Task(0, id(), queue, NEW, scheduled, null, 0, null, asList(arguments));
}
- public static Task newTask(String name, Date scheduled, String... arguments) {
- return new Task(0, null, name, NEW, scheduled, null, 0, null, asList(arguments));
+ public static Task newTask(String queue, Date scheduled, String... arguments) {
+ return new Task(0, null, queue, NEW, scheduled, null, 0, null, asList(arguments));
}
- public static Task newTask(String name, Date scheduled, List<String> arguments) {
- return new Task(0, null, name, NEW, scheduled, null, 0, null, arguments);
+ public static Task newTask(String queue, Date scheduled, List<String> arguments) {
+ return new Task(0, null, queue, NEW, scheduled, null, 0, null, arguments);
}
public static List<String> stringToArguments(String arguments) {