Package org.jvnet.hudson.reactor
Interface TaskGraphBuilder.Handle
-
- All Superinterfaces:
Milestone
- Enclosing class:
- TaskGraphBuilder
public static interface TaskGraphBuilder.Handle extends Milestone
Handle to the task. Call methods on this interface to set up dependencies among tasks.This interface is the fluent interface pattern, and all the methods return
this
to enable chaining.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Task
asTask()
Returns the task that this handle represents.TaskGraphBuilder.Handle
attains(Collection<? extends Milestone> m)
TaskGraphBuilder.Handle
attains(Milestone m)
Designates that the execution of this task contributes to the given milestone.Task
notFatal()
Marks this task as non-fatal.TaskGraphBuilder.Handle
requires(Collection<? extends Milestone> m)
TaskGraphBuilder.Handle
requires(Milestone m)
Adds a pre-requisite to this task.TaskGraphBuilder.Handle
requires(Milestone... m)
Adds pre-requisites to this task.
-
-
-
Method Detail
-
requires
TaskGraphBuilder.Handle requires(Milestone m)
Adds a pre-requisite to this task.
-
requires
TaskGraphBuilder.Handle requires(Milestone... m)
Adds pre-requisites to this task.
-
requires
TaskGraphBuilder.Handle requires(Collection<? extends Milestone> m)
-
attains
TaskGraphBuilder.Handle attains(Milestone m)
Designates that the execution of this task contributes to the given milestone.
-
attains
TaskGraphBuilder.Handle attains(Collection<? extends Milestone> m)
-
asTask
Task asTask()
Returns the task that this handle represents.
-
notFatal
Task notFatal()
Marks this task as non-fatal. SeeTask.failureIsFatal()
.
-
-