提交 52838e13 编写于 作者: K kohsuke

doc improvement

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@32559 71c3de6d-444a-0410-be80-ed276b4c234a
上级 8cb24423
...@@ -1329,7 +1329,12 @@ public class Queue extends ResourceController implements Saveable { ...@@ -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.
*
* <p>
* 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.
* *
* <p> * <p>
* This extension point is still a subject to change, as we are seeking more * 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 { ...@@ -1339,7 +1344,7 @@ public class Queue extends ResourceController implements Saveable {
*/ */
public static abstract class QueueDecisionHandler implements ExtensionPoint { 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<Action> actions); public abstract boolean shouldSchedule(Task p, List<Action> actions);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册