API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.util.concurrent. Future View Source
Author(s)
Doug Lea
Since
1.5
Version
Serial
Hierarchy
 Future
Subinterfaces
Description
public interface Future
  A Future represents the result of an asynchronous computation.
See also:    FutureTask Executor
Methods
Hide/Show inherited methods
public boolean cancel (boolean mayInterruptIfRunning)
  Attempts to cancel execution of this task.
public V get () throws InterruptedException ExecutionException
  Waits if necessary for the computation to complete, and then retrieves its result.
public V get (long timeout, TimeUnit unit) throws InterruptedException ExecutionException TimeoutException
  Waits if necessary for at most the given time for the computation to complete, and then retrieves its result, if available.
public boolean isCancelled ()
  Returns true if this task was cancelled before it completed normally.
public boolean isDone ()
  Returns true if this task completed.
Fields
Hide/Show inherited fields
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar