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, and getStartCondition() returns a separate
Future object that waits for the start of the task.
| Modifier and Type | Method and Description |
|---|---|
Future<R> |
getStartCondition()
Returns a
Future object that can be used to wait for the start of the task execution. |
R |
waitForStart()
Short for
getStartCondition().get() |
Future<R> getStartCondition()
Future object that can be used to wait for the start of the task execution.R waitForStart() throws InterruptedException, ExecutionException
getStartCondition().get()Copyright © 2019. All rights reserved.