diff options
Diffstat (limited to 'src/main')
-rwxr-xr-x | src/main/java/io/trygvis/queue/Task.java | 12 |
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) { |