From 52838e1313ba8730087930ad9033ce236f9b85a6 Mon Sep 17 00:00:00 2001 From: kohsuke Date: Wed, 7 Jul 2010 18:24:31 +0000 Subject: [PATCH] doc improvement git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@32559 71c3de6d-444a-0410-be80-ed276b4c234a --- core/src/main/java/hudson/model/Queue.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/hudson/model/Queue.java b/core/src/main/java/hudson/model/Queue.java index 74956b6242..5bfb2f3ca4 100644 --- a/core/src/main/java/hudson/model/Queue.java +++ b/core/src/main/java/hudson/model/Queue.java @@ -1329,7 +1329,12 @@ public class Queue extends ResourceController implements Saveable { } /** - * Extension point for deciding if particular job should be scheduled or not + * Extension point for deciding if particular job should be scheduled or not. + * + *

+ * This handler is consulted every time someone tries to submit a task to the queue. + * If any of the registered handlers returns false, the task will not be added + * to the queue, and the task will never get executed. * *

* This extension point is still a subject to change, as we are seeking more @@ -1339,7 +1344,7 @@ public class Queue extends ResourceController implements Saveable { */ public static abstract class QueueDecisionHandler implements ExtensionPoint { /** - * Returns whether the new item should be scheduled. + * Returns whether the new item should be scheduled. */ public abstract boolean shouldSchedule(Task p, List actions); -- GitLab