From 86cf88c47df876824f273e9e2671c9fc561c69aa Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Mon, 17 Jun 2013 07:27:01 +0200 Subject: wip --- src/main/java/io/trygvis/queue/Task.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/main/java/io/trygvis') 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 arguments) { - return new Task(0, null, name, NEW, scheduled, null, 0, null, arguments); + public static Task newTask(String queue, Date scheduled, List arguments) { + return new Task(0, null, queue, NEW, scheduled, null, 0, null, arguments); } public static List stringToArguments(String arguments) { -- cgit v1.2.3