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, set
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
get, get, isCancelled, isDone
public FutureImpl(Queue.Task task)
public Future<Queue.Executable> getStartCondition()
QueueTaskFuture
Future
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
QueueTaskFuture
getStartCondition().get()
waitForStart
in interface QueueTaskFuture<Queue.Executable>
InterruptedException
ExecutionException
public 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 © 2004–2021. All rights reserved.