Package hudson.model.queue
Class FutureImpl
java.lang.Object
hudson.remoting.AsyncFutureImpl<Queue.Executable>
hudson.model.queue.FutureImpl
- All Implemented Interfaces:
QueueTaskFuture<Queue.Executable>,hudson.remoting.Future<Queue.Executable>,Future<Queue.Executable>
public final class FutureImpl
extends hudson.remoting.AsyncFutureImpl<Queue.Executable>
implements QueueTaskFuture<Queue.Executable>
Created when
Queue.Item is created so that the caller can track the progress of the task.- Author:
- Kohsuke Kawaguchi
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class hudson.remoting.AsyncFutureImpl
get, get, isCancelled, isDone, set, setMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.concurrent.Future
get, get, isCancelled, isDone
-
Constructor Details
-
FutureImpl
-
-
Method Details
-
getStartCondition
Description copied from interface:QueueTaskFutureReturns aFutureobject that can be used to wait for the start of the task execution.- Specified by:
getStartConditionin interfaceQueueTaskFuture<Queue.Executable>- Returns:
- never return null.
-
waitForStart
Description copied from interface:QueueTaskFutureShort forgetStartCondition().get()- Specified by:
waitForStartin interfaceQueueTaskFuture<Queue.Executable>- Throws:
InterruptedExceptionExecutionException
-
cancel
public boolean cancel(boolean mayInterruptIfRunning) - Specified by:
cancelin interfaceFuture<Queue.Executable>- Overrides:
cancelin classhudson.remoting.AsyncFutureImpl<Queue.Executable>
-
setAsCancelled
public void setAsCancelled()- Overrides:
setAsCancelledin classhudson.remoting.AsyncFutureImpl<Queue.Executable>
-