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, and getStartCondition() returns a separate Future object that waits for the start of the task.

Since:
1.469
Author:
Kohsuke Kawaguchi

Method Summary
 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()
 
Methods inherited from interface java.util.concurrent.Future
cancel, get, get, isCancelled, isDone
 

Method Detail

getStartCondition

Future<R> getStartCondition()
Returns a Future 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 for getStartCondition().get()

Throws:
InterruptedException
ExecutionException


Copyright © 2004-2013. All Rights Reserved.