Package hudson.model.queue
Interface QueueTaskFuture<R extends Queue.Executable>
-
- All Superinterfaces:
Future<R>
- All Known Implementing Classes:
FutureImpl
public interface QueueTaskFuture<R extends Queue.Executable> extends Future<R>
Future
that can be used to wait for the start and the end of the task execution (such as a build.)For a historical reason, this object itself extends from
Future
to signal the end of the task execution, andgetStartCondition()
returns a separateFuture
object that waits for the start of the task.- Since:
- 1.469
- Author:
- Kohsuke Kawaguchi
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Future<R>
getStartCondition()
Returns aFuture
object that can be used to wait for the start of the task execution.R
waitForStart()
Short forgetStartCondition().get()
-
-
-
Method Detail
-
getStartCondition
Future<R> getStartCondition()
Returns aFuture
object that can be used to wait for the start of the task execution.- Returns:
- never return null.
-
waitForStart
R waitForStart() throws InterruptedException, ExecutionException
Short forgetStartCondition().get()
-
-