public final class FutureImpl extends hudson.remoting.AsyncFutureImpl<Queue.Executable> implements QueueTaskFuture<Queue.Executable>
Queue.Item is created so that the caller can track the progress of the task.| Constructor and Description |
|---|
FutureImpl(Queue.Task task) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel(boolean mayInterruptIfRunning) |
Future<Queue.Executable> |
getStartCondition()
Returns a
Future object that can be used to wait for the start of the task execution. |
void |
setAsCancelled() |
Queue.Executable |
waitForStart()
Short for
getStartCondition().get() |
get, get, isCancelled, isDone, set, setclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitget, get, isCancelled, isDonepublic FutureImpl(Queue.Task task)
public Future<Queue.Executable> getStartCondition()
QueueTaskFutureFuture object that can be used to wait for the start of the task execution.getStartCondition in interface QueueTaskFuture<Queue.Executable>public final Queue.Executable waitForStart() throws InterruptedException, ExecutionException
QueueTaskFuturegetStartCondition().get()waitForStart in interface QueueTaskFuture<Queue.Executable>InterruptedExceptionExecutionExceptionpublic boolean cancel(boolean mayInterruptIfRunning)
cancel in interface Future<Queue.Executable>cancel in class hudson.remoting.AsyncFutureImpl<Queue.Executable>public void setAsCancelled()
setAsCancelled in class hudson.remoting.AsyncFutureImpl<Queue.Executable>Copyright © 2019. All rights reserved.